Skip to content

Commit

Permalink
Rename repository mock to resource_get.
Browse files Browse the repository at this point in the history
  • Loading branch information
danriti committed Jun 27, 2014
1 parent b8304d3 commit f4e91a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mocks/github.py
Expand Up @@ -14,8 +14,8 @@
GET = 'get'


@urlmatch(netloc=NETLOC, path='/repos', method=GET)
def repository(url, request):
@urlmatch(netloc=NETLOC, method=GET)
def resource_get(url, request):
file_path = url.netloc + url.path
with open(file_path, 'r') as f:
content = f.read()
Expand Down
2 changes: 1 addition & 1 deletion test_github.py
Expand Up @@ -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'
Expand Down

0 comments on commit f4e91a1

Please sign in to comment.