Skip to content

Commit 5f79d27

Browse files
committed
Skip tests when tests/config.json is absent
1 parent 4900eaf commit 5f79d27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ def load_conf(filename):
4848
try:
4949
with open(filename) as f:
5050
conf = json.load(f)
51-
except:
52-
logger.warning("Unable to open/read JSON configuration %s" % filename)
53-
raise
51+
except FileNotFoundError:
52+
raise unittest.SkipTest(
53+
"Unable to open/read JSON configuration %s" % filename)
5454
openid_configuration = {}
5555
if "oidp" in conf:
5656
try:

0 commit comments

Comments
 (0)