Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions tests/test_evolution_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import pytest

import genome_ledger as gl
from osiris_cli import grants
from osiris_cli.orchestration import evolution_bridge as eb
from osiris_cli.orchestration.trio import DeveloperOutput, run_trio, tree_digest
Expand All @@ -17,6 +18,19 @@
"def test_single():\n assert mean([5]) == 5\n")


# dnalang-core is a separate package; without it, use the pinned copy of its ledger.py
# (v0.2.0) so these cases run everywhere instead of failing (same as test_genome_ledger_supersession).
FIXTURE_LEDGER = os.path.join(os.path.dirname(os.path.abspath(__file__)), "fixtures",
"dnalang_ledger_v0_2_0.py")


@pytest.fixture(autouse=True)
def _dnalang_ledger_source(monkeypatch):
if not os.path.exists(gl.LEDGER_SRC):
monkeypatch.setattr(gl, "LEDGER_SRC", FIXTURE_LEDGER)
monkeypatch.setattr(gl, "_ledger_mod", None)


@pytest.fixture
def repo(tmp_path):
r = tmp_path / "repo"
Expand Down
Loading