Commit 61733b4f authored by Cody Messick's avatar Cody Messick Committed by Leo P. Singer
Browse files

Add tmp_path fixture to test_nagios

parent a220e5e1
...@@ -21,11 +21,11 @@ def test_nagios_unknown_error(monkeypatch, capsys): ...@@ -21,11 +21,11 @@ def test_nagios_unknown_error(monkeypatch, capsys):
assert 'UNKNOWN: Unexpected error' in out assert 'UNKNOWN: Unexpected error' in out
def test_nagios(capsys, monkeypatch, socket_enabled, starter): def test_nagios(capsys, monkeypatch, socket_enabled, starter, tmp_path):
mock_lvalert_client = Mock() mock_lvalert_client = Mock()
monkeypatch.setattr( monkeypatch.setattr(
'gwcelery.lvalert.client.LVAlertClient', mock_lvalert_client) 'gwcelery.lvalert.client.LVAlertClient', mock_lvalert_client)
unix_socket = app.conf['broker_url'].replace('redis+socket://', '') unix_socket = app.conf['broker_url'].replace('redis+socket://', f'redis+socket://{tmp_path.as_posix()}')
# no broker # no broker
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment