From 9c9761bed4ad57447865dec4ebbf0c25e0c2be39 Mon Sep 17 00:00:00 2001 From: HatichAni <93626083+HatichAni@users.noreply.github.com> Date: Fri, 15 Nov 2024 02:54:00 +0200 Subject: [PATCH] Update test_webhook.py (#233) # Description change to "webhook" in order not to confuse with "test" environment when using "match and replace" --------- Co-authored-by: Johannes Andersen --- tests/test_webhook.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_webhook.py b/tests/test_webhook.py index 091160b..bcd4024 100644 --- a/tests/test_webhook.py +++ b/tests/test_webhook.py @@ -31,7 +31,7 @@ def match_webhook_header_signature(request): # Mocking environment variables for testing @pytest.fixture def mock_env(monkeypatch): - monkeypatch.setenv("BASE_URL", "https://test") + monkeypatch.setenv("BASE_URL", "https://webhook") monkeypatch.setenv("ENVIRONMENT", "test") monkeypatch.setenv("ALLOWED_WEBHOOKS_FILE", "tests/fixtures/allowed_webhooks.json") reload(callbacks) @@ -113,5 +113,3 @@ def test_timeout_from_webhook_destination(requests_mock, job, result, mock_env): webhook_store = WebhookService(file_path) with pytest.raises( requests.exceptions.Timeout): webhook_store.post_to_webhook(job.meta['webhook_id'], job.id, job.meta['uploaded_filename'], url=None, success=True) - - \ No newline at end of file