Example #1
0
 def test_url_creation_no_kwargs_mixed_attributes(self):
     API = RestMapper("https://github.com/")
     api = API()
     response = api.lionheartsw['python-restmapper'].issues(parse_response=False)
     assert (response.request.url == "https://github.com/lionheartsw/python-restmapper/issues")
Example #2
0
 def test_url_creation_all_attributes(self):
     API = RestMapper("https://github.com/")
     api = API()
     response = api['lionheartsw']['python-restmapper']['issues'](parse_response=False)
     assert (response.request.url == "https://github.com/lionheartsw/python-restmapper/issues")
Example #3
0
 def test_url_creation_with_kwargs_and_path(self):
     API = RestMapper("https://github.com/{username}/{repo}/{path}")
     api = API(username="******", repo="python-restmapper")
     response = api.issues(parse_response=False)
     assert (response.request.url == "https://github.com/lionheartsw/python-restmapper/issues")