Skip to content

Commit

Permalink
fix: attempt number 10? to get test working
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes-Andersen committed Dec 23, 2023
1 parent 093a946 commit 5d4035d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pytest
import whisper

os.environ['ALLOWED_WEBHOOKS_FILE'] = "backend/tests/fixtures/allowed_webhooks.json"
os.environ['ALLOWED_WEBHOOKS_FILE'] = "tests/fixtures/allowed_webhooks.json"

from src import app
from src.main import redis_connection
Expand Down
2 changes: 1 addition & 1 deletion backend/tests/test_webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def match_webhook_header_signature(request):
def mock_env(monkeypatch):
monkeypatch.setenv("BASE_URL", "https://test")
monkeypatch.setenv("ENVIRONMENT", "test")
monkeypatch.setenv("ALLOWED_WEBHOOKS_FILE", "backend/tests/fixtures/allowed_webhooks.json")
monkeypatch.setenv("ALLOWED_WEBHOOKS_FILE", "tests/fixtures/allowed_webhooks.json")
reload(callbacks)

@pytest.fixture
Expand Down

0 comments on commit 5d4035d

Please sign in to comment.