We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b75ad60 commit 8736f3dCopy full SHA for 8736f3d
hatch_cpp/tests/test_project_basic.py
@@ -1,7 +1,8 @@
1
from os import listdir
2
+from pathlib import Path
3
from shutil import rmtree
4
from subprocess import check_output
-from sys import platform
5
+from sys import path, platform
6
7
8
class TestProject:
@@ -20,3 +21,8 @@ def test_basic(self):
20
21
assert "extension.pyd" in listdir("hatch_cpp/tests/test_project_basic/basic_project")
22
else:
23
assert "extension.so" in listdir("hatch_cpp/tests/test_project_basic/basic_project")
24
+ here = Path(__file__).parent / "test_project_basic"
25
+ path.insert(0, str(here))
26
+ import basic_project.extension
27
+
28
+ assert basic_project.extension.hello() == "A string"
0 commit comments