blob: 2c78802a274909248ed69d427ef2c45399eda82d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import pytest
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)
assert co1.designation == "A1.a"
assert na.descriptor == "Not Achieved"
assert igps_co1.first().descriptive_text[:5] == "IGP 1"
|