fix(tests): test_remaining_gaps extract/eligibility fixtures — arg order + fulltext/template contract (refs P43)
All checks were successful
CI / lint (push) Successful in 30s
CI / notebooks-smoke (push) Successful in 1m25s
Deploy / notebooks (push) Has been skipped
Deploy / zotero (push) Has been skipped
Deploy / docs (push) Has been skipped
Deploy / api (push) Has been skipped
Deploy / llm (push) Has been skipped
Deploy / mc (push) Has been skipped
Deploy / report (push) Successful in 14s
CI / test (push) Successful in 11m2s
All checks were successful
CI / lint (push) Successful in 30s
CI / notebooks-smoke (push) Successful in 1m25s
Deploy / notebooks (push) Has been skipped
Deploy / zotero (push) Has been skipped
Deploy / docs (push) Has been skipped
Deploy / api (push) Has been skipped
Deploy / llm (push) Has been skipped
Deploy / mc (push) Has been skipped
Deploy / report (push) Successful in 14s
CI / test (push) Successful in 11m2s
This commit is contained in:
@@ -677,7 +677,10 @@ class TestEligibilityNoToolCalls:
|
||||
|
||||
with (
|
||||
patch("prisma.eligibility.load_item"),
|
||||
patch("prisma.eligibility.to_markdown", return_value="md"),
|
||||
patch(
|
||||
"prisma.eligibility.to_markdown",
|
||||
return_value="# Item\n\n# Full text\n\nbody",
|
||||
),
|
||||
):
|
||||
stats = elig_run(
|
||||
mock_db,
|
||||
@@ -702,6 +705,9 @@ class TestExtractNoToolCalls:
|
||||
mock_provider = MagicMock()
|
||||
mock_project = MagicMock()
|
||||
mock_project.name = "test"
|
||||
mock_project.extraction_template = (
|
||||
"- **population** — study population\n- **outcome** — primary outcome"
|
||||
)
|
||||
|
||||
with patch("prisma.extract._queue", return_value=[1]):
|
||||
mock_result = MagicMock()
|
||||
@@ -714,8 +720,8 @@ class TestExtractNoToolCalls:
|
||||
):
|
||||
stats = extract_run(
|
||||
mock_db,
|
||||
mock_project,
|
||||
mock_provider,
|
||||
mock_project,
|
||||
storage_dir=Path("/fake"),
|
||||
limit=1,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user