diff options
author | MR Lemon <matt@matthewlemon> | 2020-05-13 17:00:23 +0100 |
---|---|---|
committer | MR Lemon <matt@matthewlemon> | 2020-05-13 17:00:23 +0100 |
commit | cdd67e184c07ab0c487a59270c4b5f1edf0544e0 (patch) | |
tree | 0e73088c4e056fd9d82bf86e9ed84cd23876a5bf /ctrack/assessments/tests/test_assessments.py | |
parent | 5ae47c0121946c4691e7149fb8c983d1a3750405 (diff) |
first passing assessments app test - wiring test only
Diffstat (limited to '')
-rw-r--r-- | ctrack/assessments/tests/test_assessments.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ctrack/assessments/tests/test_assessments.py b/ctrack/assessments/tests/test_assessments.py index 4443a18..2aaed12 100644 --- a/ctrack/assessments/tests/test_assessments.py +++ b/ctrack/assessments/tests/test_assessments.py @@ -7,11 +7,11 @@ from ctrack.assessments.models import IGP pytestmark = pytest.mark.django_db - -@pytest.mark.skip("Use once we populate the test database") -def test_get_random_igps(): +def test_get_random_igps(full_db_fixture): na = AchievementLevel.objects.filter(descriptor="Not Achieved").first() co1 = CAFContributingOutcome.objects.get(pk=1) igps_co1 = IGP.objects.filter(contributing_outcome=co1, achievement_level=na) - assert False + assert co1.designation == "A1.a" + assert na.descriptor == "Not Achieved" + assert igps_co1.first().descriptive_text[:5] == "IGP 1" |