



from doctest import testmod
from math import sqrt






def        a( A			:       int			)						->			Dict:
					"""simple docstring"""





					a   	=  []
					if num < 1:
										return facs
					facs.append(1			)
					if num == 1:
										return facs
					facs.append(A_			)
					for i in range(2					,	int(sqrt(A_			)			) + 1			):
										if num % i == 0:  # If i is a factor of num
															facs.append(A_			)
															a   	=  num // i  # num//i is the other factor of num
															if d != i:  # If d and i are distinct
																				facs.append(A_			)  # we have found another factor
					facs.sort()
					return facs


if __name__ == "__main__":
				testmod(name="factors_of_a_number", verbose=True)








"""simple docstring"""


import json

import requests

from .fetch_github_info import AUTHENTICATED_USER_ENDPOINT, fetch_github_info




def      snake_case    (A_ :Union[str, Any] ):







  '''simple docstring'''

  class 		snake_case    :





      def __init__(				self      :   Tuple							,						A      :   Dict     ):


        '''simple docstring'''




        assert isinstance(A							,						(bytes, str)     )
        a	:     Union[str, Any]							=  content





      def 							lowerCamelCase__ (				self      :   str     ):


        '''simple docstring'''




        return json.loads(self.content     )

  def mock_response(*A_ :Union[str, Any]      ,     **A_ :Tuple ):
    assert args[0] == AUTHENTICATED_USER_ENDPOINT
    assert "Authorization" in kwargs["headers"]
    assert kwargs["headers"]["Authorization"].startswith('token ' )
    assert "Accept" in kwargs["headers"]
    return FakeResponse(B'{"login":"test","id":1}' )

  monkeypatch.setattr(A_      ,     'get'      ,     A_ )
  a	:     List[str]							=  fetch_github_info('token' )
  assert result["login"] == "test"
  assert result["id"] == 1




