Skip to content

Commit

Permalink
set test API key to None on empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
chadsr committed May 27, 2024
1 parent aca73d8 commit c449c87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_waybar_crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

TEST_API_KEY_ENV = "TEST_CMC_API_KEY"
API_KEY = os.getenv(TEST_API_KEY_ENV)
if API_KEY == "":
API_KEY = None
if API_KEY is None:
LOGGER.warning("No test API key provided. Skipping API tests")

Expand Down

0 comments on commit c449c87

Please sign in to comment.