Skip to content

Commit 3ce543b

Browse files
committed
Update tests for both editable modes
1 parent f028bf2 commit 3ce543b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tests/test_editable.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,16 @@ def test_navigate_editable(isolated, isolate, package):
5555
@pytest.mark.compile()
5656
@pytest.mark.configure()
5757
@pytest.mark.integration()
58-
@pytest.mark.parametrize("editable", [True, False])
59-
def test_cython_pxd(monkeypatch, tmp_path, editable):
58+
@pytest.mark.parametrize(
59+
("editable", "editable_mode"), [(False, ""), (True, "redirect"), (True, "inplace")]
60+
)
61+
def test_cython_pxd(monkeypatch, tmp_path, editable, editable_mode):
6062
env_path = tmp_path / "env"
6163
env = VEnv(env_path)
6264
editable_flag = ["-e"] if editable else []
65+
editable_mode_flag = (
66+
[f"--config-settings=editable.mode={editable_mode}"] if editable else []
67+
)
6368

6469
try:
6570
package1 = PackageInfo(
@@ -79,6 +84,7 @@ def test_cython_pxd(monkeypatch, tmp_path, editable):
7984
"--config-settings=build-dir=build/{wheel_tag}",
8085
"--no-build-isolation",
8186
*editable_flag,
87+
*editable_mode_flag,
8288
".",
8389
)
8490

@@ -94,6 +100,7 @@ def test_cython_pxd(monkeypatch, tmp_path, editable):
94100
"--config-settings=build-dir=build/{wheel_tag}",
95101
"--no-build-isolation",
96102
*editable_flag,
103+
*editable_mode_flag,
97104
".",
98105
)
99106
finally:

0 commit comments

Comments
 (0)