Skip to content

Commit edfb0ea

Browse files
committed
fix: github integration test by mocking APP_HOST
1 parent 2234f46 commit edfb0ea

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

backend/tests/utils/syncing/test_github_actions.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,17 @@
66
list_repos,
77
)
88
import base64
9+
import pytest
910
from unittest.mock import patch, Mock, call
1011

1112

13+
@pytest.fixture(autouse=True)
14+
def mock_settings():
15+
with patch("api.utils.syncing.github.actions.settings") as mock_settings:
16+
mock_settings.APP_HOST = "cloud"
17+
yield mock_settings
18+
19+
1220
def get_mocked_response(url, *args, **kwargs):
1321
mock_response = Mock()
1422

0 commit comments

Comments
 (0)