From 55d083de5765475ac5440172fe8aec39620d49d6 Mon Sep 17 00:00:00 2001 From: clintval Date: Fri, 2 Aug 2024 06:14:52 -0400 Subject: [PATCH] chore: add unit tests for new properties --- pybedlite/tests/test_pybedlite.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pybedlite/tests/test_pybedlite.py b/pybedlite/tests/test_pybedlite.py index 96774f8..789cad5 100644 --- a/pybedlite/tests/test_pybedlite.py +++ b/pybedlite/tests/test_pybedlite.py @@ -213,12 +213,14 @@ def test_bedstrand_opposite() -> None: assert BedStrand.Positive.opposite is BedStrand.Negative assert BedStrand.Negative.opposite is BedStrand.Positive + def test_bedrecord_refname() -> None: """Test that the alternate property for reference sequence name is correct.""" - assert BedRecord("chr1", 1, 2).refname == "chr1" + assert BedRecord(chrom="chr1", start=1, end=2).refname == "chr1" + def test_bedrecord_negative() -> None: """Test that the negative property is set correctly.""" - assert not BedRecord("chr1", 1, 2, strand=None).negative - assert not BedRecord("chr1", 1, 2, strand=BedStrand.Positive).negative - assert BedRecord("chr1", 1, 2, strand=BedStrand.Negative).negative + assert not BedRecord(chrom="chr1", start=1, end=2, strand=None).negative + assert not BedRecord(chrom="chr1", start=1, end=2, strand=BedStrand.Positive).negative + assert BedRecord(chrom="chr1", start=1, end=2, strand=BedStrand.Negative).negative