Skip to content

Commit 725df29

Browse files
committed
🚨 fix(linter): fix lint and pytest dep
1 parent a917eb5 commit 725df29

3 files changed

Lines changed: 14 additions & 6 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ dev = [
5454
"pre-commit (>=4.6.0,<4.7.0)",
5555
"types-python-dateutil (>=2.9.0,<2.10.0)",
5656
"wheel (>=0.47.0,<0.48.0)",
57-
"coverage>=7.13.5"
57+
"coverage>=7.13.5",
58+
"pytest (>=9.0.0,<9.1.0)",
59+
"pytest-bdd (>=8.1.0, <8.2.0)",
5860
]
5961
doc = [
6062
"autoapi (>=2.0.1,<2.1.0)",

test/signatures/test_signature_manager_post_execution.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ def _parse_iso8601_utc(value: str) -> datetime:
5656
return datetime.fromisoformat(value.replace("Z", "+00:00"))
5757

5858

59-
@given("a SignatureManager initialised with constructor SignatureManager(client, logger)")
59+
@given(
60+
"a SignatureManager initialised with constructor SignatureManager(client, logger)"
61+
)
6062
def signature_manager(context):
6163
context["signature_manager"] = SignatureManager(MagicMock(), MagicMock())
6264

@@ -111,7 +113,9 @@ def timeout_tool_output_with_no_partial_results():
111113
return {"timeout_info": {"partial_results": []}}
112114

113115

114-
@when("I call compile_post_execution_signatures with the pre_signatures dict and tool_output")
116+
@when(
117+
"I call compile_post_execution_signatures with the pre_signatures dict and tool_output"
118+
)
115119
def compile_post_execution_signatures(context, pre_signatures, tool_output):
116120
context["result"] = context["signature_manager"].compile_post_execution_signatures(
117121
pre_signatures, tool_output

test/signatures/test_signature_manager_transmission.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,11 @@ def _build_signature_payload(
103103
"values": [
104104
{
105105
"signature_type": "public_ip",
106-
"signature_value": signature_value
107-
if expectation_type == "DETECTION"
108-
else "198.51.100.10",
106+
"signature_value": (
107+
signature_value
108+
if expectation_type == "DETECTION"
109+
else "198.51.100.10"
110+
),
109111
}
110112
],
111113
}

0 commit comments

Comments
 (0)