Skip to content

Commit 9acc59f

Browse files
committed
fix: Add min_cohort_size=0 to variant_query test for amin1_sim compatibility
For amin1_sim (single-sampleset with few samples), the default min_cohort_size=10 filters out all cohorts, raising ValueError before the variant_query path is reached. This prevents the expected UserWarning from being emitted, causing the test to fail with 'DID NOT WARN'. Setting min_cohort_size=0 ensures cohorts are available so the variant query empty-result warning can be tested.
1 parent 9c5d736 commit 9acc59f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/anoph/test_snp_frq.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,6 +1529,7 @@ def test_allele_frequencies_advanced_with_variant_query(
15291529
area_by=area_by,
15301530
period_by=period_by,
15311531
variant_query=variant_query,
1532+
min_cohort_size=0,
15321533
)
15331534
assert ds_snp.sizes["variants"] == 0
15341535

@@ -1539,6 +1540,7 @@ def test_allele_frequencies_advanced_with_variant_query(
15391540
area_by=area_by,
15401541
period_by=period_by,
15411542
variant_query=variant_query,
1543+
min_cohort_size=0,
15421544
)
15431545
assert ds_aa.sizes["variants"] == 0
15441546

0 commit comments

Comments
 (0)