Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/integration/features/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def before_scenario(context, scenario):
# Create a temporary working directory for this scenario
context.temp_dir = tempfile.mkdtemp(prefix="tower_test_")
context.original_cwd = os.getcwd()
context.api_key = os.environ.get("TOWER_API_KEY", "sk-test-api-key")
os.chdir(context.temp_dir)


Expand Down
2 changes: 1 addition & 1 deletion tests/integration/features/steps/cli_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def step_run_cli_command_with_api_key(context, command):
test_env["FORCE_COLOR"] = "1"
test_env["CLICOLOR_FORCE"] = "1"
test_env["TOWER_URL"] = context.tower_url
test_env["TOWER_API_KEY"] = "sk-test-api-key"
test_env["TOWER_API_KEY"] = context.api_key

# Use a temp HOME with no session.json to prove API key auth works standalone
test_env["HOME"] = context.temp_dir
Expand Down
Loading