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 a3e206e commit dca843fCopy full SHA for dca843f
tests/api/test_guest_issuer.py
@@ -24,6 +24,7 @@
24
25
import os
26
import time
27
+import pytest
28
29
import webexteamssdk
30
@@ -34,14 +35,11 @@
34
35
"WEBEX_TEAMS_GUEST_ISSUER_SECRET"
36
)
37
-if not WEBEX_TEAMS_GUEST_ISSUER_ID:
38
- raise ValueError(
39
- "The WEBEX_TEAMS_GUEST_ISSUER_ID environment variable must be set."
40
- )
41
-
42
-if not WEBEX_TEAMS_GUEST_ISSUER_SECRET:
43
44
- "The WEBEX_TEAMS_GUEST_ISSUER_SECRET environment variable must be set."
+if WEBEX_TEAMS_GUEST_ISSUER_ID is None or not WEBEX_TEAMS_GUEST_ISSUER_SECRET:
+ pytest.skip(
+ "Required WEBEX_TEAMS_GUEST_ISSUER_ID and/or "
+ "WEBEX_TEAMS_GUEST_ISSUER_SECRET environment variables are not set.",
+ allow_module_level=True,
45
46
47
0 commit comments