Skip to content
Snippets Groups Projects
Commit a24b07f0 authored by Simon Künzel's avatar Simon Künzel
Browse files

Fix tests to work with new data

parent f6ccf277
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,6 @@ class VideoTestCase(unittest.TestCase):
assert r.status_code == 200
assert 'AfI' in r.data.decode()
assert 'Progra' in r.data.decode()
assert 'Bio' in r.data.decode()
def test_faq(self):
r = self.app.get('/faq')
......@@ -118,7 +117,7 @@ class VideoTestCase(unittest.TestCase):
def test_search(self):
r = self.app.get('/search?q=Malo')
assert r.status_code == 200
assert 'Mathematische Logik II' in r.data.decode() and '4.1 Der Sequenzenkalkül' in r.data.decode()
assert 'Mathematische Logik II' in r.data.decode()
r = self.app.get('/search?q=Afi+Stens')
assert r.status_code == 200
assert 'Analysis für Informatiker' in r.data.decode() and 'Höhere Mathematik I' in r.data.decode()
......@@ -265,9 +264,6 @@ class VideoTestCase(unittest.TestCase):
with self.app as c:
self.login(c)
r = self.app.post('/internal/import/257', data={'campus.new.url': 'https://www.campus.rwth-aachen.de/rwth/all/event.asp?gguid=0x4664DBD60E5A02479B53089BF0EB0681&tguid=0x0B473CF286B45B4984CD02565C07D6F8', 'campus.new.type': 'Vorlesung'})
assert r.status_code == 200
r = self.app.post('/internal/import/257', data={'campus.new.url': 'https://online.rwth-aachen.de/RWTHonline/pl/ui/%24ctx/wbLv.wbShowLVDetail?pStpSpNr=269474&pSpracheNr=1', 'campus.new.type': 'Übung'})
assert r.status_code == 200
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment