aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-10-21 15:21:45 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-10-21 15:21:45 +0100
commitf2b983adf059e9fe7c28a9417fc76b0f1672a51a (patch)
treeb4a58f6102921eedf55f7c21119e6110da082820 /ctrack
parentb969e7b3bbce650522370e607e788ee58075fed3 (diff)
fixed broken tests
Diffstat (limited to 'ctrack')
-rw-r--r--ctrack/register/tests/test_forms.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ctrack/register/tests/test_forms.py b/ctrack/register/tests/test_forms.py
index 4a9e818..e059cdf 100644
--- a/ctrack/register/tests/test_forms.py
+++ b/ctrack/register/tests/test_forms.py
@@ -164,7 +164,7 @@ def test_cannot_do_some_caf_single_date_events_on_same_day(allowed_type, user, c
"date": "2010-07-01",
"comments": "Meaningless comments",
},
- user=user,
+ user=user, caf_id=caf.id
)
form2 = CAFSingleDateEventForm(
{
@@ -174,7 +174,7 @@ def test_cannot_do_some_caf_single_date_events_on_same_day(allowed_type, user, c
"date": "2010-07-01",
"comments": "Meaningless comments",
},
- user=user,
+ user=user, caf_id=caf.id
)
assert form1.is_valid()
form1.save()
@@ -192,7 +192,7 @@ def test_can_register_two_send_to_rosa_events_on_same_day(user, caf):
"date": "2010-07-01",
"comments": "Meaningless comments",
},
- user=user,
+ user=user, caf_id=caf.id
)
form2 = CAFSingleDateEventForm(
{
@@ -202,7 +202,7 @@ def test_can_register_two_send_to_rosa_events_on_same_day(user, caf):
"date": "2010-07-01",
"comments": "Meaningless comments 2",
},
- user=user,
+ user=user, caf_id=caf.id
)
assert form1.is_valid()
assert form2.is_valid()