# Path: gitmostwanted/lib/github/api.py
# def fetch(uri: str, method: str = 'get', token: str = None):
# def repo_info_by_id(repo_id: int):
# def repo_info(full_name: str):
# def user_starred(token: str = None):
# def user_starred_star(full_name: str, token: str):
# def rate_limit():


from unittest import TestCase
from gitmostwanted.lib.github import api
import responses
import json


class GithubApiTestCase(TestCase):
    @responses.activate
    def test_understand_repo_info(self):
        responses.add(
            responses.GET, 'https://api.github.com/repos/kkamkou/gitmostwanted.com', status=200,
            body=json.dumps(self._body_repo_info()), content_type='application/json'
        )
        self.assertTupleEqual(

# Path: gitmostwanted/lib/github/api.py
# def fetch(uri: str, method: str = 'get', token: str = None):
# def repo_info_by_id(repo_id: int):
# def repo_info(full_name: str):
# def user_starred(token: str = None):
# def user_starred_star(full_name: str, token: str):
# def rate_limit():


# Path: tests/unit/lib/github/test_api.py
from unittest import TestCase
from gitmostwanted.lib.github import api
import responses
import json



class GithubApiTestCase(TestCase):
    @responses.activate
    def test_understand_repo_info(self):
        responses.add(
            responses.GET, 'https://api.github.com/repos/kkamkou/gitmostwanted.com', status=200,
            body=json.dumps(self._body_repo_info()), content_type='application/json'
        )
        self.assertTupleEqual(

            api.repo_info('kkamkou/gitmostwanted.com'), (self._body_repo_info(), 200)