Skip to content

Commit 218879c

Browse files
committed
fix: integration test dependencies
1 parent 5f5f5fe commit 218879c

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

plugins/tutor-contrib-paragon/pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ classifiers = [
2828
]
2929
dependencies = [
3030
"tutor>=19.0.0,<21.0.0",
31+
"tutor-mfe @ git+https://github.com/overhangio/tutor-mfe.git@release",
3132
]
3233

3334
optional-dependencies = { dev = ["tutor[dev]>=19.0.0,<21.0.0", "pytest>=8.3.4", "pytest-order>=1.3.0"] }
@@ -45,6 +46,9 @@ Source = "https://github.com/openedx/openedx-tutor-plugins.git#subdirectory=plug
4546
requires = ["hatchling"]
4647
build-backend = "hatchling.build"
4748

49+
[tool.hatch.metadata]
50+
allow-direct-references = true
51+
4852
# hatch-specific configuration
4953
[tool.hatch.metadata.hooks.custom]
5054
path = ".hatch_build.py"

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import pytest
44
import subprocess
55

6-
from .helpers import PARAGON_NAME, PARAGON_IMAGE
6+
from .helpers import PARAGON_NAME, PARAGON_IMAGE, MFE_SERVICE
77

88

99
@pytest.fixture(scope="package", autouse=True)
@@ -15,7 +15,7 @@ def setup_tutor_paragon_plugin():
1515
"""
1616

1717
subprocess.run(
18-
["tutor", "plugins", "enable", PARAGON_NAME],
18+
["tutor", "plugins", "enable", MFE_SERVICE, PARAGON_NAME],
1919
check=True,
2020
capture_output=True,
2121
)
@@ -29,7 +29,7 @@ def setup_tutor_paragon_plugin():
2929
yield
3030

3131
subprocess.run(
32-
["tutor", "plugins", "disable", PARAGON_NAME],
32+
["tutor", "plugins", "disable", PARAGON_NAME, MFE_SERVICE],
3333
check=True,
3434
capture_output=True,
3535
)

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
logger = logging.getLogger(__name__)
77

8+
MFE_SERVICE = "mfe"
89
PARAGON_NAME = "paragon"
910
PARAGON_IMAGE = "paragon-builder"
1011
PARAGON_JOB = "paragon-build-tokens"

0 commit comments

Comments
 (0)