





'''simple docstring'''


import json

import requests

from .fetch_github_info import AUTHENTICATED_USER_ENDPOINT, fetch_github_info




def  __a			(  UpperCAmelCase     )   ->int:



	"""simple docstring"""







	class 				__UpperCAmelCase	:







			'''simple docstring'''







			def __init__(self    :   Any   ,   _lowerCAmelCase    :   Union[str, Any]   ):
				assert isinstance(_lowerCAmelCase   ,   (bytes, str)   )
				A					=   content







			def 							A  (self    :   Any   ):
				return json.loads(self.content   )

	def mock_response(*UpperCAmelCase							,      **UpperCAmelCase     ):
		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					=   fetch_github_info("""token"""     )
	assert result["login"] == "test"
	assert result["id"] == 1



'''simple docstring'''







def   lowerCAmelCase(  a__    :  float      , a__    :  float      , a__    :  int      ):







       '''simple docstring'''






       lowerCamelCase__				   =      [1 / first_term]
       lowerCamelCase__				   =      1 / first_term
       for _ in range(number_of_terms - 1      ):
              first_term += common_difference
              arithmetic_progression.append(a__      )
       lowerCamelCase__				   =      [1 / step for step in arithmetic_progression]
       return sum(a__      )


if __name__ == "__main__":
    import doctest

    doctest.testmod()
    print(sum_of_harmonic_progression(1 / 2, 2, 2))

