Skip to content

Commit

Permalink
Add conda's testing fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed Mar 13, 2024
1 parent ae5d37f commit 6f0bcdc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
from conda_build.utils import check_call_env, copy_into, prepend_bin_path
from conda_build.variants import get_default_variant

pytest_plugins = (
# Add testing fixtures and internal pytest plugins here
"conda.testing",
)


@pytest.fixture(scope="function")
def testing_workdir(monkeypatch: MonkeyPatch, tmp_path: Path) -> Iterator[str]:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_inspect_pkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def test_which_package(tmp_path: Path):
def test_which_package_battery(path_factory: PathFactoryFixture):
# regression: https://github.com/conda/conda-build/issues/5126
# create a dummy environment
tmp_path = path_factory()
(tmp_path := path_factory()).mkdir()
(tmp_path / "conda-meta").mkdir()
(tmp_path / "conda-meta" / "history").touch()
(tmp_path / "lib").mkdir()
Expand Down

0 comments on commit 6f0bcdc

Please sign in to comment.