Skip to content

Commit

Permalink
πŸ’š Fix organization of curator tests to avoid collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed Jan 2, 2025
1 parent df35be0 commit e5778b3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
filters: |
curator:
- 'lamindb/curators/**'
- 'tests/core/test_curator.py'
- 'tests/curators/test_curator.py'
- uses: actions/setup-python@v5
if: ${{ matrix.group != 'curator' || steps.changes.outputs.curator == 'true' }}
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def build(session, group):
elif group == "curator":
run(
session,
f"pytest {coverage_args} tests/core/test_curator.py --durations=50",
f"pytest {coverage_args} tests/curators/test_curator.py --durations=50",
)
elif group == "cli":
run(session, f"pytest {coverage_args} ./sub/lamin-cli/tests --durations=50")
Expand Down
10 changes: 10 additions & 0 deletions tests/curators/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import lamindb_setup as ln_setup
import pytest


def pytest_sessionstart():
ln_setup.init(storage="./testdb", schema="bionty")


def pytest_sessionfinish(session: pytest.Session):
ln_setup.delete("testdb", force=True)
File renamed without changes.

0 comments on commit e5778b3

Please sign in to comment.