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