Skip to content

Commit

Permalink
Update test_webhook.py (#233)
Browse files Browse the repository at this point in the history
# Description

change to "webhook" in order not to confuse with "test" environment when
using "match and replace"

---------

Co-authored-by: Johannes Andersen <jotoffen@gmail.com>
  • Loading branch information
HatichAni and Johannes-Andersen authored Nov 15, 2024
1 parent 26752eb commit 9c9761b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test_webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)


0 comments on commit 9c9761b

Please sign in to comment.