diff --git a/tests/test_config.py b/tests/test_config.py index 147d57c5..9ca4b940 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -2,6 +2,7 @@ import builtins import json +import tempfile from unittest import TestCase from unittest.mock import call, mock_open, patch @@ -14,7 +15,7 @@ _get_config_file_path, ) -FILE_PATH = '/tmp/bogus.json' # noqa: S108 +FILE_PATH = tempfile.NamedTemporaryFile(suffix='.json', delete=False).name CONFIGS = { 'default': {'url': 'http://example.com'}, 'Ask Aak': {'url': 'bogus value', 'auth': ['username', 'password']},