]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/commitdiff
Follow redirects in tests that test update functions.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Wed, 1 Nov 2017 22:07:43 +0000 (22:07 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Wed, 1 Nov 2017 22:07:43 +0000 (22:07 +0000)
git-svn-id: http://www.winterrodeln.org/svn/wradmin/trunk@2734 7aebc617-e5e2-0310-91dc-80fb5f6d2477

tests/test_wradmin.py

index 9eb227f398f54d668a810bb5e299eb73f8b9f520..80801b1115c29e089a685534fa558cf22daf1d7e 100644 (file)
@@ -81,7 +81,7 @@ class TestDbWradmin(WradminTestBase):
         self.assertIn('Meißner', str(soup))
 
     def test_gasthaus_update(self):
-        result = self.app.get('/gasthaus/update')
+        result = self.app.get('/gasthaus/update', follow_redirects=True)
         self.assertEqual(result.status_code, 200)
         self.assertTrue(result.data.startswith(b'<!DOCTYPE html'))
         soup = bs4.BeautifulSoup(result.data, 'html.parser')
@@ -107,14 +107,14 @@ class TestDbWradmin(WradminTestBase):
         self.assertIn('Hühnerspiel', str(soup))
 
     def test_rodelbahn_update(self):
-        result = self.app.get('/rodelbahn/update')
+        result = self.app.get('/rodelbahn/update', follow_redirects=True)
         self.assertEqual(result.status_code, 200)
         self.assertTrue(result.data.startswith(b'<!DOCTYPE html'))
         soup = bs4.BeautifulSoup(result.data, 'html.parser')
         self.assertIn('Die Rodelbahnliste wurde erfolgreich aktualisiert.', str(soup))
 
     def test_rodelbahn_update_regioncache(self):
-        result = self.app.get('/rodelbahn/update_regioncache')
+        result = self.app.get('/rodelbahn/update_regioncache', follow_redirects=True)
         self.assertEqual(result.status_code, 200)
         self.assertTrue(result.data.startswith(b'<!DOCTYPE html'))
         soup = bs4.BeautifulSoup(result.data, 'html.parser')