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

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))