Skip to content

Commit eafe72a

Browse files
committed
fix: remove hail test context
1 parent 5761826 commit eafe72a

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

divref/divref/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from divref.tools.compute_haplotype_statistics import compute_haplotype_statistics
99
from divref.tools.compute_haplotypes import compute_haplotypes
1010
from divref.tools.compute_variation_ratios import compute_variation_ratios
11+
from divref.tools.create_fasta_and_index import create_fasta_and_index
1112
from divref.tools.create_gnomad_sites_vcf import create_gnomad_sites_vcf
1213
from divref.tools.extract_gnomad_afs import extract_gnomad_afs
1314
from divref.tools.extract_sample_metadata import extract_sample_metadata
@@ -17,6 +18,7 @@
1718
compute_haplotypes,
1819
compute_haplotype_statistics,
1920
compute_variation_ratios,
21+
create_fasta_and_index,
2022
create_gnomad_sites_vcf,
2123
extract_gnomad_afs,
2224
extract_sample_metadata,

divref/divref/tools/create_fasta_and_index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import hail as hl
88
import polars
99

10-
from divref.haplotype import HailPath
10+
from divref.alias import HailPath
1111
from divref.haplotype import get_haplo_sequence
1212
from divref.haplotype import split_haplotypes
1313

divref/tests/tools/test_create_fasta_and_index.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
from typing import Any
44
from unittest.mock import patch
55

6-
import pytest
6+
import hail as hl
77

8-
hl = pytest.importorskip("hail")
9-
10-
from divref.haplotype import get_haplo_sequence # noqa: E402
8+
from divref.haplotype import get_haplo_sequence
119

1210

1311
def _create_variant(contig: str, position: int, ref: str, alt: str) -> Any:
@@ -55,7 +53,6 @@ def mock_get_sequence(
5553
return mock_get_sequence
5654

5755

58-
@pytest.mark.skip(reason="Requires a running Hail/Spark JVM context")
5956
def test_get_haplo_sequence_edge_cases() -> None:
6057
"""Test get_haplo_sequence with SNPs, insertions, and deletions."""
6158
reference = "01234567891"

0 commit comments

Comments
 (0)