File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
tests/api_app/pivots_manager Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11from django .core .exceptions import ValidationError
22from django .db import transaction
33
4+ from api_app .analyzers_manager .constants import AllTypes
45from api_app .analyzers_manager .models import AnalyzerConfig
56from api_app .connectors_manager .models import ConnectorConfig
67from api_app .models import Job , PythonModule
@@ -95,9 +96,9 @@ def test_create_job_multiple_file(self):
9596 python_module = PythonModule .objects .filter (
9697 base_path = "api_app.pivots_manager.pivots"
9798 ).first (),
98- playbook_to_execute = PlaybookConfig .objects .get (
99- name = "Sample_Static_Analysis"
100- ),
99+ playbook_to_execute = PlaybookConfig .objects .filter (
100+ disabled = False , type__icontains = AllTypes . FILE . value
101+ ). first () ,
101102 )
102103 with open ("test_files/file.exe" , "rb" ) as f :
103104 content = f .read ()
You can’t perform that action at this time.
0 commit comments