Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import builtins
import json
import tempfile
from unittest import TestCase
from unittest.mock import call, mock_open, patch

Expand All @@ -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']},
Expand Down