We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8304d3 commit f4e91a1Copy full SHA for f4e91a1
mocks/github.py
@@ -14,8 +14,8 @@
14
GET = 'get'
15
16
17
-@urlmatch(netloc=NETLOC, path='/repos', method=GET)
18
-def repository(url, request):
+@urlmatch(netloc=NETLOC, method=GET)
+def resource_get(url, request):
19
file_path = url.netloc + url.path
20
with open(file_path, 'r') as f:
21
content = f.read()
test_github.py
@@ -15,7 +15,7 @@
class TestGithub(unittest.TestCase):
- @with_httmock(mocks.github.repository)
+ @with_httmock(mocks.github.resource_get)
def test_get_repository(self):
owner = 'appneta'
repo = 'burndown'
0 commit comments