Skip to content

Commit a78d2bb

Browse files
committed
Simplified use of security configuration fixture in 'test_run_repost_failed_calls()'
1 parent 97dc116 commit a78d2bb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/cli/test_repost_failed_calls.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from unittest import mock
77

88
from murfey.cli import repost_failed_calls
9-
from tests.conftest import mock_security_config_name
109

1110

1211
@mock.patch("murfey.cli.repost_failed_calls.PikaTransport")
@@ -167,12 +166,11 @@ def test_run_repost_failed_calls(
167166
mock_repost,
168167
mock_purge,
169168
mock_security_configuration,
170-
tmp_path,
171169
):
172170
mock_jwt.encode.return_value = "dummy_token"
173171
mock_purge.return_value = ["/path/to/msg1"]
174172

175-
config_file = tmp_path / mock_security_config_name
173+
config_file = mock_security_configuration
176174
with open(config_file) as f:
177175
security_config = json.load(f)
178176

0 commit comments

Comments
 (0)