diff --git a/tests/shared/test_effects.py b/tests/shared/test_effects.py index 2837296..1e00d2d 100644 --- a/tests/shared/test_effects.py +++ b/tests/shared/test_effects.py @@ -19,7 +19,9 @@ def test_dev_stage_disables_effects(monkeypatch): def test_dev_slack_token_does_not_read_secrets(monkeypatch): monkeypatch.setenv("STAGE", "dev") - monkeypatch.setenv("SLACK_BOT_TOKEN_SECRET", "afterhours-shift-manager/slack-bot-token") + monkeypatch.setenv( + "SLACK_BOT_TOKEN_SECRET", "afterhours-shift-manager/slack-bot-token" + ) read = MagicMock(side_effect=AssertionError("secret read")) monkeypatch.setattr("shared.side_effects.get_secret", read) assert slack_token() is None