Commit 96c6cd1a authored by Andreas Valder's avatar Andreas Valder

fixed tests for legacy urls

parent 856f1d65
......@@ -202,13 +202,13 @@ class VideoTestCase(unittest.TestCase):
assert r.status_code == 302
assert url_for('feed', handle='16ws-afi') in r.data.decode()
r = self.app.get('/site/feed.php?lecture=7319')
r = self.app.get('/site/embed.php?lecture=7319')
assert r.status_code == 302
assert False # missing
assert url_for('embed', id='7319', course='16ws-progra') in r.data.decode()
r = self.app.get('/site/feed.php?vid=6088')
r = self.app.get('/site/embed.php?vid=6088')
assert r.status_code == 302
assert False # missing
assert url_for('embed', id='4105', course='14ws-ex3') in r.data.decode()
if __name__ == '__main__':
unittest.main()
......
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