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 fa3f439 commit 5c09eddCopy full SHA for 5c09edd
1 file changed
tests/e2e/conftest.py
@@ -24,8 +24,11 @@ def docker_image() -> str:
24
@pytest.fixture(scope="session")
25
def api_key() -> str:
26
key = os.environ.get("CODEPLAIN_API_KEY")
27
- if not key:
+
28
+ if key is None:
29
pytest.skip("CODEPLAIN_API_KEY not set")
30
+ if key == "":
31
+ pytest.fail("CODEPLAIN_API_KEY is set but empty")
32
return key
33
34
0 commit comments