3030import pytest
3131import zarr
3232
33- from tsinfer import config , grouping , vcz
33+ from tsinfer import config , vcz
3434
3535# ---------------------------------------------------------------------------
3636# Fixtures
@@ -346,7 +346,7 @@ def test_ancestor_haplotype(self):
346346 schedule = schedule ,
347347 )
348348 # a0 has genotype [0, 1, 0]
349- job = grouping .MatchJob (
349+ job = config .MatchJob (
350350 haplotype_index = 1 ,
351351 source = "ancestors" ,
352352 sample_id = "a0" ,
@@ -371,7 +371,7 @@ def test_ancestor_haplotype_second(self):
371371 schedule = schedule ,
372372 )
373373 # a1 has genotype [1, 0, 1]
374- job = grouping .MatchJob (
374+ job = config .MatchJob (
375375 haplotype_index = 2 ,
376376 source = "ancestors" ,
377377 sample_id = "a1" ,
@@ -396,7 +396,7 @@ def test_sample_haplotype_encoding(self):
396396 schedule = schedule ,
397397 )
398398 # sample_0: gt [0, 1, 1] → encoded [0=anc, 1=derived, 1=derived]
399- job = grouping .MatchJob (
399+ job = config .MatchJob (
400400 haplotype_index = 3 ,
401401 source = "test" ,
402402 sample_id = "sample_0" ,
@@ -421,7 +421,7 @@ def test_sample_haplotype_second(self):
421421 schedule = schedule ,
422422 )
423423 # sample_1: gt [1, 0, 0] → encoded [1=derived, 0=anc, 0=anc]
424- job = grouping .MatchJob (
424+ job = config .MatchJob (
425425 haplotype_index = 4 ,
426426 source = "test" ,
427427 sample_id = "sample_1" ,
@@ -467,7 +467,7 @@ def test_missing_genotype_encoded_as_minus_one(self):
467467 anc_alleles ,
468468 schedule = schedule ,
469469 )
470- job = grouping .MatchJob (
470+ job = config .MatchJob (
471471 haplotype_index = 2 ,
472472 source = "test" ,
473473 sample_id = "sample_0" ,
@@ -519,7 +519,7 @@ def test_multiple_sources(self):
519519 schedule = [("src_a" , "sample_0" , 0 ), ("src_b" , "sample_0" , 0 )]
520520 reader = vcz .HaplotypeReader (sources , positions , anc_alleles , schedule = schedule )
521521
522- job_a = grouping .MatchJob (
522+ job_a = config .MatchJob (
523523 haplotype_index = 2 ,
524524 source = "src_a" ,
525525 sample_id = "sample_0" ,
@@ -529,7 +529,7 @@ def test_multiple_sources(self):
529529 end_position = 200 ,
530530 group = 2 ,
531531 )
532- job_b = grouping .MatchJob (
532+ job_b = config .MatchJob (
533533 haplotype_index = 3 ,
534534 source = "src_b" ,
535535 sample_id = "sample_0" ,
@@ -1475,7 +1475,7 @@ def test_facade_returns_alleles_after_reads(self):
14751475 reader = vcz .HaplotypeReader (sources , positions , anc_alleles , schedule = schedule )
14761476
14771477 # Read from both sources to trigger allele discovery
1478- job_a = grouping .MatchJob (
1478+ job_a = config .MatchJob (
14791479 haplotype_index = 0 ,
14801480 source = "src_a" ,
14811481 sample_id = "sample_0" ,
@@ -1485,7 +1485,7 @@ def test_facade_returns_alleles_after_reads(self):
14851485 end_position = 200 ,
14861486 group = 0 ,
14871487 )
1488- job_b = grouping .MatchJob (
1488+ job_b = config .MatchJob (
14891489 haplotype_index = 1 ,
14901490 source = "src_b" ,
14911491 sample_id = "sample_0" ,
0 commit comments