Skip to content

Commit

Permalink
fix: do not try to login to aws during test
Browse files Browse the repository at this point in the history
  • Loading branch information
lieryan committed Mar 15, 2024
1 parent 3b0f53e commit 1b88702
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ def mock_invoke_run(monkeypatch):
monkeypatch.setattr(core, "run", lambda cmd: None)


@fixture(autouse=True)
def mock_get_account_id(monkeypatch):
monkeypatch.setattr(apps, "get_account_id", lambda: "UNKNOWN")


@fixture
def confirm_yes(monkeypatch):
monkeypatch.setattr(apps, "confirm", lambda: True)
Expand Down

0 comments on commit 1b88702

Please sign in to comment.