Commit 843e6271 authored by Remi Rampin's avatar Remi Rampin

More tests

parent 921b9eec
Pipeline #66159062 passed with stage
in 2 minutes and 12 seconds
......@@ -292,6 +292,11 @@ class TestMultiuser(MyHTTPTestCase):
self.assertEqual(response.code, 302)
self.assertEqual(response.headers['Location'], '/')
# Hit error page
response = self.get('/api/project/1/highlights/')
self.assertEqual(response.code, 403)
self.assertEqual(response.body, b'{"error": "Not logged in"}')
# Fetch login page
response = self.get('/login?' + urlencode(dict(next='/project/1')))
self.assertEqual(response.code, 200)
......@@ -543,6 +548,8 @@ class TestMultiuser(MyHTTPTestCase):
'content': "tent"},
]})
# TODO: Export
async def poll_event(self, proj, from_id):
response = await self.aget('/api/project/%d/events?from=%d' % (
proj, from_id))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment