diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-05-30 09:33:29 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-05-30 09:33:29 +0100 |
commit | 9307fc7676db68de4b3d25f795aa2a351f9d4843 (patch) | |
tree | 61ca1e81e49837707e1c725af1ebbe395493b0cd /ctrack/assessments/tests | |
parent | 3aec120ae42cb29049c8ba3d8d52d2388e56bb36 (diff) |
cleaned up tests
Diffstat (limited to '')
-rw-r--r-- | ctrack/assessments/tests/conftest.py | 11 | ||||
-rw-r--r-- | ctrack/assessments/tests/test_assessments.py | 8 |
2 files changed, 3 insertions, 16 deletions
diff --git a/ctrack/assessments/tests/conftest.py b/ctrack/assessments/tests/conftest.py deleted file mode 100644 index 1435c86..0000000 --- a/ctrack/assessments/tests/conftest.py +++ /dev/null @@ -1,11 +0,0 @@ - -# TODO Here we need to make use of the populate script to create a massive -# test fixture. -import pytest - -from ctrack.core.utils import populate_db - - -@pytest.fixture -def full_db_fixture(): - populate_db(orgs=2, igps=2) diff --git a/ctrack/assessments/tests/test_assessments.py b/ctrack/assessments/tests/test_assessments.py index 2aaed12..2c78802 100644 --- a/ctrack/assessments/tests/test_assessments.py +++ b/ctrack/assessments/tests/test_assessments.py @@ -1,17 +1,15 @@ import pytest -from ctrack.assessments.models import AchievementLevel -from ctrack.assessments.models import CAFContributingOutcome -from ctrack.assessments.models import IGP +from ctrack.assessments.models import IGP, AchievementLevel, CAFContributingOutcome pytestmark = pytest.mark.django_db +@pytest.mark.skip("Does not test behaviour") 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) + igps_co1 = IGP.objects.filter(contributing_outcome=co1, achievement_level=na) assert co1.designation == "A1.a" assert na.descriptor == "Not Achieved" assert igps_co1.first().descriptive_text[:5] == "IGP 1" |