Skip to content

Commit

Permalink
Don't test checking and loading environment variables if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
tekktrik committed Mar 2, 2024
1 parent b9b3ce5 commit 9e1de06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
def pytest_sessionstart(session: pytest.Session) -> None:
"""Save the current cron table before testing."""
# Load environment variables if not in GitHub Actions
if "GH_TOKEN" not in os.environ:
if "GH_TOKEN" not in os.environ: # pragma: no cover
with open(".env", encoding="utf-8") as envfile:
env_contents = envfile.read()
for envline in env_contents.split("\n"):
Expand Down

0 comments on commit 9e1de06

Please sign in to comment.