-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ded72af
commit f9a4da7
Showing
1 changed file
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
""" | ||
Tests for finaletoolkit.genome.gaps | ||
""" | ||
|
||
import os | ||
|
||
import pytest | ||
|
||
from finaletoolkit.genome.gaps import * | ||
|
||
class TestGapBedCLI: | ||
def test_hg19(self, tmp_path): | ||
dest = tmp_path / 'hg19.gaps.bed' | ||
|
||
exit_status = os.system(f'finaletoolkit gap-bed hg19 {dest}') | ||
assert exit_status == 0 | ||
|
||
file_exists = os.path.isfile(dest) | ||
assert file_exists | ||
|
||
|
||
def test_b37(self, tmp_path): | ||
dest = tmp_path / 'b37.gaps.bed' | ||
|
||
exit_status = os.system(f'finaletoolkit gap-bed b37 {dest}') | ||
assert exit_status == 0 | ||
|
||
file_exists = os.path.isfile(dest) | ||
assert file_exists | ||
|
||
|
||
def test_human_g1k_v37(self, tmp_path): | ||
dest = tmp_path / 'human_g1k_v37.gaps.bed' | ||
|
||
exit_status = os.system(f'finaletoolkit gap-bed human_g1k_v37 {dest}') | ||
assert exit_status == 0 | ||
|
||
file_exists = os.path.isfile(dest) | ||
assert file_exists | ||
|
||
|
||
def test_hg38(self, tmp_path): | ||
dest = tmp_path / 'hg38.gaps.bed' | ||
|
||
exit_status = os.system(f'finaletoolkit gap-bed hg38 {dest}') | ||
assert exit_status == 0 | ||
|
||
file_exists = os.path.isfile(dest) | ||
assert file_exists | ||
|
||
|
||
def test_GRCh38(self, tmp_path): | ||
dest = tmp_path / 'GRCh38.gaps.bed' | ||
|
||
exit_status = os.system(f'finaletoolkit gap-bed GRCh38 {dest}') | ||
assert exit_status == 0 | ||
|
||
file_exists = os.path.isfile(dest) | ||
assert file_exists | ||
|
||
class TestGapBed: | ||
pass | ||
|
||
class TestGenomeGaps: | ||
pass |