@@ -222,7 +222,7 @@ def test_scanpipe_pipes_outputs_to_xlsx(self):
222222
223223 # Make sure the output can be generated even if the work_directory was wiped
224224 shutil .rmtree (project .work_directory )
225- with self .assertNumQueries (9 ):
225+ with self .assertNumQueries (10 ):
226226 output_file = output .to_xlsx (project = project )
227227 self .assertIn (output_file .name , project .output_root )
228228
@@ -497,34 +497,6 @@ def test_scanpipe_pipes_outputs_to_attribution(self):
497497 output_file = output .to_attribution (project = project )
498498 self .assertEqual ("EMPTY_TEMPLATE" , output_file .read_text ())
499499
500- def test_scanpipe_pipes_outputs_get_todos_data (self ):
501- project = Project .objects .create (name = "Analysis" )
502- todos_data = output .get_todos_data (project )
503- self .assertEqual ([], list (todos_data ))
504-
505- make_resource_file (
506- project = project , path = "path/file1.ext" , status = flag .REQUIRES_REVIEW
507- )
508- make_resource_file (project = project , path = "path/file2.ext" )
509-
510- todos_data = output .get_todos_data (project )
511- expected = [
512- {
513- "path" : "path/file1.ext" ,
514- "status" : "requires-review" ,
515- "size" : None ,
516- "name" : "file1.ext" ,
517- "extension" : ".ext" ,
518- "programming_language" : "" ,
519- "mime_type" : "" ,
520- "tag" : "path" ,
521- "detected_license_expression" : "" ,
522- "compliance_alert" : "" ,
523- "project__name" : "Analysis" ,
524- }
525- ]
526- self .assertEqual (expected , list (todos_data ))
527-
528500
529501class ScanPipeXLSXOutputPipesTest (TestCase ):
530502 def test__add_xlsx_worksheet_does_truncates_long_strings_over_max_len (self ):
0 commit comments