We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5757df7 commit d11e3e7Copy full SHA for d11e3e7
tests/conftest.py
@@ -62,6 +62,10 @@ def test_config() -> Optional[Dict]:
62
if 'FLASK_CONFIG' not in os.environ:
63
LOGGER.info('Missing test configuration via FLASK_CONFIG environment variable. Tests are limited')
64
return None
65
+ config_file = os.path.expanduser(os.environ['FLASK_CONFIG'])
66
+ if not os.path.exists(config_file):
67
+ LOGGER.info('Configuration set via FLASK_CONFIG environment variable does not exist. Tests are limited')
68
+ return None
69
with open(os.path.expanduser(os.environ['FLASK_CONFIG'])) as C:
70
return json.load(C)
71
0 commit comments