Fix python linter errors
This commit is contained in:
@@ -790,7 +790,7 @@ class TestGetLlmFinalDecision:
|
||||
):
|
||||
mock_agg.return_value = MagicMock(tools=[mock_schema])
|
||||
|
||||
function_call_results, message = get_llm_final_decision(
|
||||
function_call_results, _message = get_llm_final_decision(
|
||||
user_request="okay then gchq-local as controller and qube-email as moon please everything else as peer",
|
||||
flake=mock_flake,
|
||||
selected_service="zerotier",
|
||||
|
||||
@@ -216,7 +216,7 @@ class TestLogFileCreation:
|
||||
configured_log_manager: LogManager,
|
||||
) -> None:
|
||||
"""Test that creating log file with unregistered group fails."""
|
||||
with pytest.raises(ValueError, match="Group structure.*is not valid"):
|
||||
with pytest.raises(ValueError, match=r"Group structure.*is not valid"):
|
||||
configured_log_manager.create_log_file(
|
||||
example_function,
|
||||
"test_op",
|
||||
@@ -228,7 +228,7 @@ class TestLogFileCreation:
|
||||
configured_log_manager: LogManager,
|
||||
) -> None:
|
||||
"""Test that invalid nested structure fails."""
|
||||
with pytest.raises(ValueError, match="Group structure.*is not valid"):
|
||||
with pytest.raises(ValueError, match=r"Group structure.*is not valid"):
|
||||
configured_log_manager.create_log_file(
|
||||
example_function,
|
||||
"test_op",
|
||||
|
||||
Reference in New Issue
Block a user