self.assertEqual(soup.title.text, 'Hauptmenü')
def test_coordtool(self):
self.assertEqual(soup.title.text, 'Hauptmenü')
def test_coordtool(self):
result = self.app.get('/coordtool/index')
self.assertEqual(result.status_code, 200)
self.assertTrue(result.data.startswith(b'<!doctype html'))
result = self.app.get('/coordtool/index')
self.assertEqual(result.status_code, 200)
self.assertTrue(result.data.startswith(b'<!doctype html'))
self.assertEqual(soup.title.text, 'Koordinaten-Rechner')
def test_coordtool_convert_ok(self):
self.assertEqual(soup.title.text, 'Koordinaten-Rechner')
def test_coordtool_convert_ok(self):
result = self.app.post('/coordtool/convert', data={'input': '47.987, 11.123'}, follow_redirects=True)
self.assertEqual(result.status_code, 200)
self.assertTrue(result.data.startswith(b'<!doctype html'))
result = self.app.post('/coordtool/convert', data={'input': '47.987, 11.123'}, follow_redirects=True)
self.assertEqual(result.status_code, 200)
self.assertTrue(result.data.startswith(b'<!doctype html'))
self.assertIn('GPX Format', str(soup))
def test_coordtool_convert_error(self):
self.assertIn('GPX Format', str(soup))
def test_coordtool_convert_error(self):
result = self.app.post('/coordtool/convert', data={'input': 'abc'}, follow_redirects=True)
self.assertEqual(result.status_code, 200)
self.assertTrue(result.data.startswith(b'<!doctype html'))
result = self.app.post('/coordtool/convert', data={'input': 'abc'}, follow_redirects=True)
self.assertEqual(result.status_code, 200)
self.assertTrue(result.data.startswith(b'<!doctype html'))
con.execute("UPDATE wrreport SET date_invalid = date_invalid + INTERVAL %s SECOND", (seconds_diff,))
con.execute("UPDATE wrreport SET delete_date = delete_date + INTERVAL %s SECOND", (seconds_diff,))
con.execute("UPDATE wrreport SET date_invalid = date_invalid + INTERVAL %s SECOND", (seconds_diff,))
con.execute("UPDATE wrreport SET delete_date = delete_date + INTERVAL %s SECOND", (seconds_diff,))
def login_and_get(self, url: str):
result = self.app.get(url)
self.assertEqual(result.status_code, 302)
def login_and_get(self, url: str):
result = self.app.get(url)
self.assertEqual(result.status_code, 302)
self.assertIn('Brandstatt Alm', str(soup.table))
def test_bericht_change_date_invalid_twoweeks(self):
self.assertIn('Brandstatt Alm', str(soup.table))
def test_bericht_change_date_invalid_twoweeks(self):
url = '/bericht/change_date_invalid/19591'
post_data = {'date_invalid': 'two_weeks', 'date_userdefined': '2018-01-30 18:26'}
result = self.app.post(url, data=post_data)
url = '/bericht/change_date_invalid/19591'
post_data = {'date_invalid': 'two_weeks', 'date_userdefined': '2018-01-30 18:26'}
result = self.app.post(url, data=post_data)
self.assertIn('2018-01-30 15:09:00', str(soup))
def test_gasthaus_list(self):
self.assertIn('2018-01-30 15:09:00', str(soup))
def test_gasthaus_list(self):
self.assertEqual(result.status_code, 200)
self.assertTrue(result.data.startswith(b'<!doctype html'))
soup = bs4.BeautifulSoup(result.data, 'html.parser')
self.assertEqual(result.status_code, 200)
self.assertTrue(result.data.startswith(b'<!doctype html'))
soup = bs4.BeautifulSoup(result.data, 'html.parser')
self.assertIn('Meißner', str(soup.table))
def test_gasthaus_view(self):
self.assertIn('Meißner', str(soup.table))
def test_gasthaus_view(self):
self.assertEqual(result.status_code, 200)
self.assertTrue(result.data.startswith(b'<!doctype html'))
soup = bs4.BeautifulSoup(result.data, 'html.parser')
self.assertEqual(result.status_code, 200)
self.assertTrue(result.data.startswith(b'<!doctype html'))
soup = bs4.BeautifulSoup(result.data, 'html.parser')
self.assertIn('Meißner', str(soup))
def test_gasthaus_update_success(self):
self.assertIn('Meißner', str(soup))
def test_gasthaus_update_success(self):
result = self.app.get('/gasthaus/update', follow_redirects=True)
self.assertEqual(result.status_code, 200)
self.assertTrue(result.data.startswith(b'<!doctype html'))
result = self.app.get('/gasthaus/update', follow_redirects=True)
self.assertEqual(result.status_code, 200)
self.assertTrue(result.data.startswith(b'<!doctype html'))
- text = session.query(wradmin.model.MwText).get(8719)
- text.old_text = text.old_text.replace('maria-waldrast@aon.at', 'abc@def@example.com')
+ text = session.query(wradmin.model.MwText).get(14415)
+ text.old_text = text.old_text.replace('lindauerhuette@aon.at', 'abc@def@example.com')
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')
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.assertEqual(result.status_code, 200)
self.assertTrue(result.data.startswith(b'<!doctype html'))
soup = bs4.BeautifulSoup(result.data, 'html.parser')
self.assertEqual(result.status_code, 200)
self.assertTrue(result.data.startswith(b'<!doctype html'))
soup = bs4.BeautifulSoup(result.data, 'html.parser')
self.assertEqual(len(rows), 9+1)
def test_rodelbahn_view(self):
self.assertEqual(len(rows), 9+1)
def test_rodelbahn_view(self):
self.assertTrue(result.data.startswith(b'<!doctype html'))
soup = bs4.BeautifulSoup(result.data, 'html.parser')
self.assertIn('Rodelbahn', soup.title.text)
self.assertIn('Hühnerspiel', str(soup))
def test_rodelbahn_update_success(self):
self.assertTrue(result.data.startswith(b'<!doctype html'))
soup = bs4.BeautifulSoup(result.data, 'html.parser')
self.assertIn('Rodelbahn', soup.title.text)
self.assertIn('Hühnerspiel', str(soup))
def test_rodelbahn_update_success(self):
result = self.app.get('/rodelbahn/update', follow_redirects=True)
self.assertEqual(result.status_code, 200)
self.assertTrue(result.data.startswith(b'<!doctype html'))
result = self.app.get('/rodelbahn/update', follow_redirects=True)
self.assertEqual(result.status_code, 200)
self.assertTrue(result.data.startswith(b'<!doctype html'))
result = self.app.get('/rodelbahn/update', follow_redirects=True)
self.assertEqual(result.status_code, 200)
self.assertTrue(result.data.startswith(b'<!doctype html'))
result = self.app.get('/rodelbahn/update', follow_redirects=True)
self.assertEqual(result.status_code, 200)
self.assertTrue(result.data.startswith(b'<!doctype html'))
self.assertIn('Fehler bei Rodelbahn \'Juifenalm\'', str(soup))
def test_rodelbahn_update_regioncache(self):
self.assertIn('Fehler bei Rodelbahn \'Juifenalm\'', str(soup))
def test_rodelbahn_update_regioncache(self):
result = self.app.get('/rodelbahn/update_regioncache', follow_redirects=True)
self.assertEqual(result.status_code, 200)
self.assertTrue(result.data.startswith(b'<!doctype html'))
result = self.app.get('/rodelbahn/update_regioncache', follow_redirects=True)
self.assertEqual(result.status_code, 200)
self.assertTrue(result.data.startswith(b'<!doctype html'))