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:
7373 fields = [
7474 "url" ,
7575 "pipeline_name" ,
76+ "status" ,
7677 "description" ,
7778 "project" ,
7879 "uuid" ,
Original file line number Diff line number Diff line change 4444from scanpipe .models import DiscoveredPackage
4545from scanpipe .models import Project
4646from scanpipe .models import ProjectError
47+ from scanpipe .models import Run
4748from scanpipe .pipes .input import copy_input
4849from scanpipe .pipes .output import JSONResultsGenerator
4950from scanpipe .tests import package_data1
@@ -346,6 +347,7 @@ def test_scanpipe_api_run_detail(self):
346347 self .assertIsNone (response .data ["task_end_date" ])
347348 self .assertEqual ("" , response .data ["task_output" ])
348349 self .assertIsNone (response .data ["execution_time" ])
350+ self .assertEqual (Run .Status .NOT_STARTED , response .data ["status" ])
349351
350352 @mock .patch ("scanpipe.models.Run.execute_task_async" )
351353 def test_scanpipe_api_run_action_start_pipeline (self , mock_execute_task ):
You can’t perform that action at this time.
0 commit comments