]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/commitdiff
Add test_rodelbahn_update_regioncache.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Wed, 1 Nov 2017 22:07:34 +0000 (22:07 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Wed, 1 Nov 2017 22:07:34 +0000 (22:07 +0000)
git-svn-id: http://www.winterrodeln.org/svn/wradmin/trunk@2728 7aebc617-e5e2-0310-91dc-80fb5f6d2477

tests/test_wradmin.py

index fc5ceba113e3078d9e8a208502795da3759bc3fd..9eb227f398f54d668a810bb5e299eb73f8b9f520 100644 (file)
@@ -112,3 +112,10 @@ class TestDbWradmin(WradminTestBase):
         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')
+        self.assertEqual(result.status_code, 200)
+        self.assertTrue(result.data.startswith(b'<!DOCTYPE html'))
+        soup = bs4.BeautifulSoup(result.data, 'html.parser')
+        self.assertIn('Die Rodelbahneinträge in den Regionslisten wurden erfolgreich aktualisiert.', str(soup))