File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ class Meta:
73
73
fields = [
74
74
"url" ,
75
75
"pipeline_name" ,
76
+ "status" ,
76
77
"description" ,
77
78
"project" ,
78
79
"uuid" ,
Original file line number Diff line number Diff line change 44
44
from scanpipe .models import DiscoveredPackage
45
45
from scanpipe .models import Project
46
46
from scanpipe .models import ProjectError
47
+ from scanpipe .models import Run
47
48
from scanpipe .pipes .input import copy_input
48
49
from scanpipe .pipes .output import JSONResultsGenerator
49
50
from scanpipe .tests import package_data1
@@ -346,6 +347,7 @@ def test_scanpipe_api_run_detail(self):
346
347
self .assertIsNone (response .data ["task_end_date" ])
347
348
self .assertEqual ("" , response .data ["task_output" ])
348
349
self .assertIsNone (response .data ["execution_time" ])
350
+ self .assertEqual (Run .Status .NOT_STARTED , response .data ["status" ])
349
351
350
352
@mock .patch ("scanpipe.models.Run.execute_task_async" )
351
353
def test_scanpipe_api_run_action_start_pipeline (self , mock_execute_task ):
You can’t perform that action at this time.
0 commit comments