@@ -461,7 +461,9 @@ def test_inspect(self, mocked, tmp_path):
461
461
def test_mkschema (self , mocked , tmp_path ):
462
462
runner = ct .CliRunner (mix_stderr = False )
463
463
result = runner .invoke (
464
- cli .vcf2zarr_main , f"mkschema { tmp_path } " , catch_exceptions = False
464
+ cli .vcf2zarr_main ,
465
+ f"mkschema { tmp_path } --variants-chunk-size=3 " "--samples-chunk-size=4" ,
466
+ catch_exceptions = False ,
465
467
)
466
468
assert result .exit_code == 0
467
469
assert len (result .stdout ) == 0
@@ -705,6 +707,25 @@ def test_explode(self, tmp_path):
705
707
# Arbitrary check
706
708
assert "CHROM" in result .stdout
707
709
710
+ def test_mkschema (self , tmp_path ):
711
+ icf_path = tmp_path / "icf"
712
+ runner = ct .CliRunner (mix_stderr = False )
713
+ result = runner .invoke (
714
+ cli .vcf2zarr_main ,
715
+ f"explode { self .vcf_path } { icf_path } " ,
716
+ catch_exceptions = False ,
717
+ )
718
+ assert result .exit_code == 0
719
+ result = runner .invoke (
720
+ cli .vcf2zarr_main ,
721
+ f"mkschema { icf_path } --variants-chunk-size=3 " "--samples-chunk-size=2" ,
722
+ catch_exceptions = False ,
723
+ )
724
+ assert result .exit_code == 0
725
+ d = json .loads (result .stdout )
726
+ assert d ["samples_chunk_size" ] == 2
727
+ assert d ["variants_chunk_size" ] == 3
728
+
708
729
def test_encode (self , tmp_path ):
709
730
icf_path = tmp_path / "icf"
710
731
zarr_path = tmp_path / "zarr"
0 commit comments