From d244e7ca98e46c542bc9c000a5040f89e69328ac Mon Sep 17 00:00:00 2001 From: scallec Date: Tue, 26 Mar 2024 17:07:12 +0100 Subject: [PATCH] Add test --- tests/test_trigger.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_trigger.py b/tests/test_trigger.py index 00c1319..9c47576 100644 --- a/tests/test_trigger.py +++ b/tests/test_trigger.py @@ -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: