Skip to content

Commit

Permalink
tests: Use bork's current source tree rather than the one from git
Browse files Browse the repository at this point in the history
Noticed in #344:
- `test_repo[bork]` runs `python -m bork` in a copy of the bork repo;
- the Python interpreter looks for the `bork` module, finds the `bork/` folder in the (current) working directory;
- the version of bork being run is the one `project_src` provided, rather than the one pytest was called against.
  • Loading branch information
nbraud committed Nov 22, 2023
1 parent 52cd92d commit 6886497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ def _src_name(src):

@pytest.fixture(scope="session", ids=_src_name, params=(
Path(__file__).parent / 'fixtures' / 'minimal-package',
Path(__file__).parent.parent, # bork's source tree
) + tuple(pytest.param(url, marks=pytest.mark.network) for url in (
"https://github.com/astronouth7303/ppb-mutant.git",
"https://github.com/duckinator/bork.git",
"https://github.com/duckinator/emanate.git",
"https://github.com/ppb/ppb-vector.git",
)))
Expand Down

0 comments on commit 6886497

Please sign in to comment.