Skip to content

Commit

Permalink
Rewrote test_secret_usage to accommodate Nones
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Jul 16, 2024
1 parent b6c2475 commit 8bec278
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions reweight/tests/test_installation.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ def test_install():

def test_secret_usage():
import os

token_not_none = (
"POLICYENGINE_GITHUB_MICRODATA_AUTH_TOKEN" in os.environ,
)
assert token_not_none, "Authentication token not found"
token = os.environ["POLICYENGINE_GITHUB_MICRODATA_AUTH_TOKEN"]
token_not_none = (token != None)
assert token_not_none, "Authentication token is None"

0 comments on commit 8bec278

Please sign in to comment.