We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fec58e0 commit 28f9995Copy full SHA for 28f9995
infrahub_sdk/pytest_plugin/plugin.py
@@ -1,3 +1,4 @@
1
+import os
2
from pathlib import Path
3
from typing import Optional, Union
4
@@ -33,6 +34,7 @@ def pytest_addoption(parser: Parser) -> None:
33
34
"--infrahub-key",
35
action="store",
36
dest="infrahub_key",
37
+ default=os.getenv("INFRAHUB_API_TOKEN"),
38
metavar="INFRAHUB_TESTS_API_KEY",
39
help="Key to use when querying the Infrahub instance for live testing",
40
)
0 commit comments