Skip to content

Commit

Permalink
make fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
nskobov committed Dec 7, 2023
1 parent ffa2513 commit 2c1cfd5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/unit/panther_analysis_tool/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,14 +680,13 @@ def test_run_tests_with_filters(self):

def test_can_retrieve_base_detection_for_test(self):
import logging

with Pause(self.fs):
file_path = f"{FIXTURES_PATH}/derived_without_base"
backend = MockBackend()
backend.get_rule_body = mock.MagicMock(
return_value=BackendResponse(
data=GetRuleBodyResponse(
body="def rule(_):\n\treturn False"
),
data=GetRuleBodyResponse(body="def rule(_):\n\treturn False"),
status_code=200,
)
)
Expand All @@ -705,6 +704,7 @@ def test_can_retrieve_base_detection_for_test(self):

def test_logs_warning_if_cannot_retrieve_base(self):
import logging

with Pause(self.fs):
file_path = f"{FIXTURES_PATH}/derived_without_base"
backend = MockBackend()
Expand All @@ -729,7 +729,6 @@ def test_logs_warning_if_cannot_retrieve_base(self):
assert_equal(return_code, 0)
assert_equal(len(invalid_specs), 0)


def test_can_inherit_tests_from_base(self):
import sys
from io import StringIO
Expand Down

0 comments on commit 2c1cfd5

Please sign in to comment.