Skip to content

Commit

Permalink
Implement test for url uplifting
Browse files Browse the repository at this point in the history
  • Loading branch information
nictru committed Jul 24, 2023
1 parent 5b2634f commit 839ea41
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/test_uplifting.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from easyliftover import upliftPath
from easyliftover import upliftPath, upliftUrl

def __test__(assembly1: str, assembly2: str, path_assembly1: str, path_assembly2: str):
content_assembly1 = open(path_assembly1).read()
Expand All @@ -15,4 +15,7 @@ def test_gff():

def test_wig():
__test__('hg19', 'hg38', 'test/data/hg19.wig', 'test/data/hg38.wig')


def test_url_lifting():
result = upliftUrl('hg19', 'hg38', 'https://github.com/biomedbigdata/easyLiftover/raw/main/test/data/hg19.bed')
assert result == upliftPath('hg19', 'hg38', 'test/data/hg19.bed')

0 comments on commit 839ea41

Please sign in to comment.