Fix tests

This commit is contained in:
Athanasios Voutsadakis
2017-11-16 16:33:50 +00:00
parent 0e9291c9d8
commit 1c78b938b4
3 changed files with 8 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ from freezegun import freeze_time
@freeze_time("2016-01-01 11:09:00.061258")
def test_form_contains_next_24h():
def test_form_contains_next_24h(app_):
choices = ChooseTimeForm().scheduled_for.choices
@@ -34,12 +34,12 @@ def test_form_contains_next_24h():
@freeze_time("2016-01-01 11:09:00.061258")
def test_form_defaults_to_now(client):
def test_form_defaults_to_now(app_):
assert ChooseTimeForm().scheduled_for.data == ''
@freeze_time("2016-01-01 11:09:00.061258")
def test_form_contains_next_three_days():
def test_form_contains_next_three_days(app_):
assert ChooseTimeForm().scheduled_for.categories == [
'Later today', 'Tomorrow', 'Sunday', 'Monday'
]