Compare commits
1 Commits
0.18
...
61f2126c1b
| Author | SHA1 | Date | |
|---|---|---|---|
| 61f2126c1b |
4
app.py
4
app.py
@@ -105,8 +105,8 @@ def inject_render_time():
|
||||
|
||||
@app.route("/")
|
||||
def index():
|
||||
# Redirect root to /fees for convenience while there are no other apps
|
||||
return '<meta http-equiv="refresh" content="0; url=/fees" />'
|
||||
# Redirect root to /adults for convenience while there are no other apps
|
||||
return '<meta http-equiv="refresh" content="0; url=/adults" />'
|
||||
|
||||
@app.route("/fees")
|
||||
def fees():
|
||||
|
||||
@@ -17,7 +17,7 @@ class TestWebApp(unittest.TestCase):
|
||||
"""Test that / returns the refresh meta tag"""
|
||||
response = self.client.get('/')
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertIn(b'url=/fees', response.data)
|
||||
self.assertIn(b'url=/adults', response.data)
|
||||
|
||||
@patch('app.get_cached_data', side_effect=_bypass_cache)
|
||||
@patch('app.get_members_with_fees')
|
||||
|
||||
Reference in New Issue
Block a user