Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Yenaled authored Oct 20, 2023
1 parent 18249e2 commit b120104
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions tests/test_ref.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,8 @@ def test_ref(self):
dlist_overhang=1,
aa=False,
make_unique=False,
max_ec_size=None
max_ec_size=None,
temp_dir=temp_dir
)
split_and_index.assert_not_called()

Expand Down Expand Up @@ -474,7 +475,8 @@ def test_ref_override_k(self):
dlist_overhang=1,
aa=False,
make_unique=False,
max_ec_size=None
max_ec_size=None,
temp_dir=temp_dir
)
split_and_index.assert_not_called()

Expand Down Expand Up @@ -529,7 +531,8 @@ def test_ref_exists(self):
dlist_overhang=1,
aa=False,
make_unique=False,
max_ec_size=None
max_ec_size=None,
temp_dir=temp_dir
)
split_and_index.assert_not_called()

Expand Down Expand Up @@ -635,7 +638,8 @@ def test_ref_overwrite(self):
dlist_overhang=1,
aa=False,
make_unique=False,
max_ec_size=None
max_ec_size=None,
temp_dir=temp_dir
)
split_and_index.assert_not_called()

Expand Down Expand Up @@ -677,7 +681,7 @@ def test_ref_kite_odd(self):
)
create_t2g_from_fasta.assert_called_once_with(fasta_path, t2g_path)
kallisto_index.assert_called_once_with(
fasta_path, index_path, k=1, threads=8
fasta_path, index_path, k=1, threads=8, temp_dir=temp_dir
)
split_and_index.assert_not_called()

Expand Down Expand Up @@ -761,7 +765,7 @@ def test_ref_kite_even(self):
)
create_t2g_from_fasta.assert_called_once_with(fasta_path, t2g_path)
kallisto_index.assert_called_once_with(
fasta_path, index_path, k=1, threads=8
fasta_path, index_path, k=1, threads=8, temp_dir=temp_dir
)

def test_ref_kite_override_k(self):
Expand Down Expand Up @@ -803,7 +807,7 @@ def test_ref_kite_override_k(self):
)
create_t2g_from_fasta.assert_called_once_with(fasta_path, t2g_path)
kallisto_index.assert_called_once_with(
fasta_path, index_path, k=k, threads=8
fasta_path, index_path, k=k, threads=8, temp_dir=temp_dir
)

def test_ref_kite_doesnt_overwrite(self):
Expand Down Expand Up @@ -880,7 +884,7 @@ def test_ref_kite_overwrite(self):
)
create_t2g_from_fasta.assert_called_once_with(fasta_path, t2g_path)
kallisto_index.assert_called_once_with(
fasta_path, index_path, k=1, threads=8
fasta_path, index_path, k=1, threads=8, temp_dir=temp_dir
)

def test_ref_nac(self):
Expand Down Expand Up @@ -982,7 +986,8 @@ def test_ref_nac(self):
dlist=None,
dlist_overhang=1,
make_unique=False,
max_ec_size=None
max_ec_size=None,
temp_dir=temp_dir
)
split_and_index.assert_not_called()

Expand Down Expand Up @@ -1189,7 +1194,7 @@ def test_ref_lamanno_split_3(self):
)
])
kallisto_index.assert_called_once_with(
cdna_fasta_path, 'index_cdna', k=31
cdna_fasta_path, 'index_cdna', k=31, temp_dir=temp_dir
)
split_and_index.assert_called_once_with(
intron_fasta_path, 'index_intron', n=2, k=31, temp_dir=temp_dir
Expand Down Expand Up @@ -1296,7 +1301,8 @@ def test_ref_nac_override_k(self):
dlist=None,
dlist_overhang=1,
make_unique=False,
max_ec_size=None
max_ec_size=None,
temp_dir=temp_dir
)
split_and_index.assert_not_called()

Expand Down Expand Up @@ -1371,7 +1377,8 @@ def test_ref_nac_exists(self):
dlist=None,
dlist_overhang=1,
make_unique=False,
max_ec_size=None
max_ec_size=None,
temp_dir=temp_dir
)
split_and_index.assert_not_called()

Expand Down Expand Up @@ -1532,6 +1539,7 @@ def test_ref_nac_overwrite(self):
dlist=None,
dlist_overhang=1,
make_unique=False,
max_ec_size=None
max_ec_size=None,
temp_dir=temp_dir
)
split_and_index.assert_not_called()

0 comments on commit b120104

Please sign in to comment.