Skip to content

Commit

Permalink
set default value pytest plugin infrahub_key to INFRAHUB_API_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
wvandeun committed Sep 18, 2024
1 parent d52989f commit 33cd3fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python_sdk/infrahub_sdk/pytest_plugin/plugin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from pathlib import Path
from typing import Optional, Union

Expand Down Expand Up @@ -34,6 +35,7 @@ def pytest_addoption(parser: Parser) -> None:
action="store",
dest="infrahub_key",
metavar="INFRAHUB_TESTS_API_KEY",
default=os.getenv("INFRAHUB_API_TOKEN"),
help="Key to use when querying the Infrahub instance for live testing",
)
group.addoption(
Expand Down

0 comments on commit 33cd3fd

Please sign in to comment.