]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/blobdiff - tests/test_wradmin.py
Add test_rodelbahn_update.
[philipp/winterrodeln/wradmin.git] / tests / test_wradmin.py
index 4a932c8ca5e3a1f1ea5889b5f944ae0f748ff309..fc5ceba113e3078d9e8a208502795da3759bc3fd 100644 (file)
@@ -105,3 +105,10 @@ class TestDbWradmin(WradminTestBase):
         soup = bs4.BeautifulSoup(result.data, 'html.parser')
         self.assertEqual(soup.title.text, 'Rodelbahn')
         self.assertIn('Hühnerspiel', str(soup))
+
+    def test_rodelbahn_update(self):
+        result = self.app.get('/rodelbahn/update')
+        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))