We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4a777f commit a6257a3Copy full SHA for a6257a3
1 file changed
tests/test_packaging.py
@@ -108,7 +108,7 @@ def test_module_version_matches_package_metadata(self):
108
109
assert mcp_server_python_docs.__version__ == version("mcp-server-python-docs")
110
111
- def test_source_tree_import_without_installed_metadata(self):
+ def test_source_tree_import_without_installed_metadata(self, tmp_path: Path):
112
"""Source-tree import falls back to pyproject.toml when metadata is absent."""
113
env = os.environ.copy()
114
env["PYTHONPATH"] = str(PROJECT_ROOT / "src")
@@ -123,6 +123,7 @@ def test_source_tree_import_without_installed_metadata(self):
123
text=True,
124
timeout=10,
125
env=env,
126
+ cwd=str(tmp_path),
127
)
128
assert result.returncode == 0, (
129
f"Source-tree import failed.\n"
0 commit comments