Download:
child 128:a93fdb7416f0
parent 126:76da93a3fe44
127:837ecaf010dc
Anton Shestakov <av6@dwimlabs.net>, Fri, 08 Jul 2016 00:11:51 +0800
tests: name projects in setup_module() according to module name

1 файлов изменено, 4 вставок(+), 4 удалений(-) [+]
tests/test_viewer.py file | annotate | diff | comparison | revisions
--- a/tests/test_viewer.py Thu Jul 07 14:27:13 2016 +0800
+++ b/tests/test_viewer.py Fri Jul 08 00:11:51 2016 +0800
@@ -18,10 +18,10 @@
with database.transaction():
Project.create(
- url='https://example.com/alice/hello-world',
+ url='https://example.com/alice/test-viewer',
domain='example.com',
user='alice',
- name='hello-world')
+ name='test-viewer')
def test_get_project_or_404():
@@ -29,9 +29,9 @@
get_project_or_404('butt.cloud', 'cyber', 'wizard-attack')
assert error.value.status_code == 404
- project = get_project_or_404('example.com', 'alice', 'hello-world')
+ project = get_project_or_404('example.com', 'alice', 'test-viewer')
assert project.id is not None
- assert project.url == 'https://example.com/alice/hello-world'
+ assert project.url == 'https://example.com/alice/test-viewer'
class ViewerTestCase(AsyncHTTPTestCase):