-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* removed nose imports from tests * seems to work
- Loading branch information
Showing
8 changed files
with
47 additions
and
37 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
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
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
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
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 |
---|---|---|
@@ -1,24 +1,25 @@ | ||
from .common import major_releases | ||
|
||
from nose.tools import nottest | ||
|
||
@nottest | ||
def check_id_length(method_name): | ||
for release in major_releases: | ||
method = getattr(release, method_name) | ||
# only load chromosome Y to speed up tests | ||
idents = method(contig="Y") | ||
assert len(idents) > 0, "No values returned by %s" % method_name | ||
assert all(len(ident) == 15 for ident in idents), \ | ||
"Invalid IDs for %s: %s" % ( | ||
method_name, | ||
[ident for ident in idents if len(ident) != 15]) | ||
assert all(len(ident) == 15 for ident in idents), "Invalid IDs for %s: %s" % ( | ||
method_name, | ||
[ident for ident in idents if len(ident) != 15], | ||
) | ||
|
||
|
||
def test_gene_id_length(): | ||
check_id_length('gene_ids') | ||
check_id_length("gene_ids") | ||
|
||
|
||
def test_transcript_id_length(): | ||
check_id_length('transcript_ids') | ||
check_id_length("transcript_ids") | ||
|
||
|
||
def test_protein_id_length(): | ||
check_id_length('protein_ids') | ||
check_id_length("protein_ids") |
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
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
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