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

tests/test_wradmin.py

index 4c691b0be950b0b891c748768c8473029c121d89..4a932c8ca5e3a1f1ea5889b5f944ae0f748ff309 100644 (file)
@@ -80,6 +80,13 @@ class TestDbWradmin(WradminTestBase):
         self.assertEqual(soup.title.text, 'Gasthaus')
         self.assertIn('Meißner', str(soup))
 
+    def test_gasthaus_update(self):
+        result = self.app.get('/gasthaus/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 Gasthausliste wurde erfolgreich aktualisiert.', str(soup))
+
     def test_rodelbahn_list(self):
         result = self.app.get('/rodelbahn/list')
         self.assertEqual(result.status_code, 200)