






"""simple docstring"""





import json

import requests

from .fetch_github_info import AUTHENTICATED_USER_ENDPOINT, fetch_github_info







def 	lowerCAmelCase_(			SCREAMING_SNAKE_CASE       )       ->						Optional[Any]:
    """simple docstring"""

    class  __lowerCamelCase     :

       def __init__(       self			,					snake_case_   )		->							None:
           assert isinstance(snake_case_			,					(bytes, str)   )
           UpperCamelCase__								=     content







       def     SCREAMING_SNAKE_CASE__			(       self   )		->							Union[str, Any]:
           return json.loads(self.content   )

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












"""simple docstring"""





def 	lowerCAmelCase_(			SCREAMING_SNAKE_CASE       )       ->						int:
    """simple docstring"""

    if not isinstance(SCREAMING_SNAKE_CASE			,						SCREAMING_SNAKE_CASE       ):
        raise ValueError('double_factorial() only accepts integral values'       )
    if num < 0:
        raise ValueError('double_factorial() not defined for negative values'       )
    UpperCamelCase__								=     1
    for i in range(SCREAMING_SNAKE_CASE			,						0			,						-2       ):
        value *= i
    return value


if __name__ == "__main__":
  import doctest

  doctest.testmod()




