Skip to content

Commit

Permalink
add fix for CLI tests to properly set CLI context (localstack#7939)
Browse files Browse the repository at this point in the history
  • Loading branch information
thrau authored and alexrashed committed Mar 23, 2023
1 parent 02c9b8f commit ee34ca6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/bootstrap/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import pytest

from localstack import config


@pytest.fixture(autouse=True)
def _setup_cli_environment(monkeypatch):
# normally we are setting LOCALSTACK_CLI in localstack/cli/main.py, which is not actually run in the tests
monkeypatch.setenv("LOCALSTACK_CLI", "1")
monkeypatch.setattr(config, "dirs", config.Directories.for_cli())

0 comments on commit ee34ca6

Please sign in to comment.