summaryrefslogtreecommitdiff
path: root/tests/fixtures.py
diff options
context:
space:
mode:
authorCharles Oliveira <charles.oliveira@linaro.org>2020-04-13 10:58:11 -0300
committerCharles Oliveira <charles.oliveira@linaro.org>2020-04-14 17:48:56 -0300
commit3d5b536f3ccb4fc7d5a228d5c64ef49bc2fa0078 (patch)
treeb3833d3850f440fb081f63ca07fd00910389c4de /tests/fixtures.py
parent0b192f78a8516680bee031f41421b014f0751aa7 (diff)
core: models: use testrun status endpoint
Diffstat (limited to 'tests/fixtures.py')
-rw-r--r--tests/fixtures.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/fixtures.py b/tests/fixtures.py
index d795d50..2e2ed1b 100644
--- a/tests/fixtures.py
+++ b/tests/fixtures.py
@@ -6,6 +6,7 @@
#
from squad.core import models as m
+from squad.core.tasks import RecordTestRunStatus
from squad.ci import models as mci
from rest_framework.authtoken.models import Token
@@ -35,6 +36,8 @@ failed_test = testrun.tests.create(suite=suite, result=False, name='my_failed_te
xfailed_test = testrun.tests.create(suite=suite, result=True, name='my_xfailed_test', has_known_issues=True)
skipped_test = testrun.tests.create(suite=suite, result=None, name='my_skipped_test')
+RecordTestRunStatus()(testrun)
+
backend = mci.Backend.objects.create()
testjob = testrun.test_jobs.create(backend=backend, target=project, target_build=build)