Skip to content

Commit f983f08

Browse files
committed
fix(test): update LMS_HOST variable for hosting tests
1 parent 3a4dbd3 commit f983f08

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

plugins/tutor-contrib-paragon/tests/integration/conftest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ def setup_tutor_paragon_plugin():
2626
capture_output=True,
2727
)
2828

29+
subprocess.run(
30+
["tutor", "config", "save", "--set", "LMS_HOST=local.openedx.io"],
31+
check=True,
32+
capture_output=True,
33+
)
34+
2935
yield
3036

3137
subprocess.run(

plugins/tutor-contrib-paragon/tests/integration/plugin_functionality_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,12 @@ def test_build_tokens_hosted_files():
187187
assert result.returncode == 0, f"Error running build-tokens job: {result.stderr}"
188188

189189
static_url_prefix = get_config_value("PARAGON_STATIC_URL_PREFIX").lstrip("/")
190-
mfe_host = "apps.local.openedx.io"
190+
mfe_host = get_config_value("MFE_HOST")
191191

192192
services_result = execute_tutor_command(["local", "start", "-d", "caddy", "mfe"])
193193
assert services_result.returncode == 0, "Error starting hosting services"
194194

195-
time.sleep(1)
195+
time.sleep(5)
196196

197197
try:
198198
base_url = f"http://{mfe_host}/{static_url_prefix}"

0 commit comments

Comments
 (0)