From a24b07f05ead3b998b7ec6061d8ecd4ad86b383c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20K=C3=BCnzel?= <simonk@fsmpi.rwth-aachen.de> Date: Mon, 13 May 2024 23:53:09 +0200 Subject: [PATCH] Fix tests to work with new data --- tests/test_misc.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/test_misc.py b/tests/test_misc.py index 088c677..c98d47d 100644 --- a/tests/test_misc.py +++ b/tests/test_misc.py @@ -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 -- GitLab