-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: reorganize
pixi build
tests (#2639)
- move test data to common directory - move helper functions to fixtures
- Loading branch information
1 parent
d4d3c6d
commit 35b7f7d
Showing
7 changed files
with
33 additions
and
25 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from pathlib import Path | ||
import pytest | ||
|
||
|
||
@pytest.fixture | ||
def build_data(test_data: Path) -> Path: | ||
""" | ||
Returns the pixi build test data | ||
""" | ||
return test_data.joinpath("pixi_build") | ||
|
||
|
||
@pytest.fixture | ||
def examples_dir() -> Path: | ||
""" | ||
Returns the path to the examples directory in the root of the repository | ||
""" | ||
return Path(__file__).parents[3].joinpath("examples").resolve() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters