Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
StephKll3c committed Mar 26, 2024
1 parent 6471c17 commit d244e7c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ def test_secrets_url():
mock.assert_called_with(trigger.SECRETS_URL_FILE_NAME)


def test_intake_url():
trigger = DummyTrigger()
with patch.object(Module, "load_config", return_value="intake") as mock:
assert trigger.intake_url == "intake"
mock.assert_called_with(trigger.INTAKE_URL_FILE_NAME)


def test_logs_url():
trigger = DummyTrigger()
with patch.object(Module, "load_config", return_value="logs") as mock:
Expand Down

0 comments on commit d244e7c

Please sign in to comment.