Skip to content

Commit

Permalink
URL prefix is now /v1
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Jun 5, 2015
1 parent ff7129b commit 0c9484e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kinto/tests/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class BaseWebTest(object):

def __init__(self, *args, **kwargs):
super(BaseWebTest, self).__init__(*args, **kwargs)
self.app.RequestClass = cliquet_support.get_request_class(prefix="v0")
self.app.RequestClass = cliquet_support.get_request_class(prefix="v1")
self.storage = self.app.app.registry.storage
self.storage.initialize_schema()
self.headers = {
Expand Down
2 changes: 1 addition & 1 deletion kinto/tests/test_views_hello.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class HelloViewTest(BaseWebTest, unittest.TestCase):
def test_returns_info_about_url_and_version(self):
response = self.app.get('/')
self.assertEqual(response.json['version'], VERSION)
self.assertEqual(response.json['url'], 'http://localhost/v0/')
self.assertEqual(response.json['url'], 'http://localhost/v1/')
self.assertEqual(response.json['hello'], 'cloud storage')
self.assertEqual(response.json['documentation'],
'https://kinto.rtfd.org/')

0 comments on commit 0c9484e

Please sign in to comment.