Skip to content

Commit affbb42

Browse files
Fix TestPoetry test cases.
Due to an update of poetry some behaviour changed where it no longer supports the `src` layout of python projects by default. This resulted in the three tests of `TestPoetry` failing. The fix creates the source files under the `test` directory matching the package name. * tests/test_pyvenv.py
1 parent f041892 commit affbb42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_pyvenv.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class TestPoetry:
196196
async def test_simple_project(self, tmp_path: Path):
197197
"""Test installing a simple project with poetry."""
198198
# create source files
199-
src_location = tmp_path / "src"
199+
src_location = tmp_path / "test"
200200
src_location.mkdir()
201201
src_location.joinpath("__init__.py").touch()
202202

@@ -261,7 +261,7 @@ async def test_simple_project(self, tmp_path: Path):
261261
async def test_simple_project_with_optional_deps(self, tmp_path: Path):
262262
"""Test installing a simple project with poetry."""
263263
# create source files
264-
src_location = tmp_path / "src"
264+
src_location = tmp_path / "test"
265265
src_location.mkdir()
266266
src_location.joinpath("__init__.py").touch()
267267

@@ -351,7 +351,7 @@ async def test_simple_project_with_optional_deps(self, tmp_path: Path):
351351
async def test_create_two_concurrently(self, tmp_path: Path):
352352
"""Test creating two environments concurrently."""
353353
# create source files
354-
src_location = tmp_path / "src"
354+
src_location = tmp_path / "test"
355355
src_location.mkdir()
356356
src_location.joinpath("__init__.py").touch()
357357

0 commit comments

Comments
 (0)