Skip to content

Commit f4e91a1

Browse files
committed
Rename repository mock to resource_get.
1 parent b8304d3 commit f4e91a1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mocks/github.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
GET = 'get'
1515

1616

17-
@urlmatch(netloc=NETLOC, path='/repos', method=GET)
18-
def repository(url, request):
17+
@urlmatch(netloc=NETLOC, method=GET)
18+
def resource_get(url, request):
1919
file_path = url.netloc + url.path
2020
with open(file_path, 'r') as f:
2121
content = f.read()

test_github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
class TestGithub(unittest.TestCase):
1717

18-
@with_httmock(mocks.github.repository)
18+
@with_httmock(mocks.github.resource_get)
1919
def test_get_repository(self):
2020
owner = 'appneta'
2121
repo = 'burndown'

0 commit comments

Comments
 (0)