Skip to content

Commit 5c09edd

Browse files
committed
fail for unset codeplain api key
1 parent fa3f439 commit 5c09edd

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/e2e/conftest.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ def docker_image() -> str:
2424
@pytest.fixture(scope="session")
2525
def api_key() -> str:
2626
key = os.environ.get("CODEPLAIN_API_KEY")
27-
if not key:
27+
28+
if key is None:
2829
pytest.skip("CODEPLAIN_API_KEY not set")
30+
if key == "":
31+
pytest.fail("CODEPLAIN_API_KEY is set but empty")
2932
return key
3033

3134

0 commit comments

Comments
 (0)