From ca8e1a0af48e7fa5b647c86f7399489bd221316c Mon Sep 17 00:00:00 2001 From: James Meakin <12661555+jmsmkn@users.noreply.github.com> Date: Thu, 9 Jan 2025 12:29:32 +0100 Subject: [PATCH] Fix test --- app/tests/evaluation_tests/test_models.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/tests/evaluation_tests/test_models.py b/app/tests/evaluation_tests/test_models.py index 8e9a64301..96ea6f9d4 100644 --- a/app/tests/evaluation_tests/test_models.py +++ b/app/tests/evaluation_tests/test_models.py @@ -463,7 +463,11 @@ def test_open_for_submission( open_for_submissions, expected_status, ): - phase = PhaseFactory() + PhaseFactory() + + # Annotate the compute costs + phase = Phase.objects.get() + phase.submissions_limit_per_user_per_period = ( submissions_limit_per_user_per_period )