Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SOaAS
dbxref
Commits
550001e0
Commit
550001e0
authored
Feb 04, 2020
by
Jan Keller
Browse files
unittest for the InterPro retriever
parent
54d1951c
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_ipro.py
0 → 100755
View file @
550001e0
import
unittest
from
dbxref.retrieve
import
ipro
class
TestIPro
(
unittest
.
TestCase
):
# Test if ipro retriever gives any output
def
test_output
(
self
):
documents
=
ipro
.
retrieve
([{
'db'
:
'InterPro'
,
'id'
:
'IPR000003'
}],
basics
=
True
,
hierarchy
=
True
,
wikipedia
=
True
,
literature
=
True
,
cross_references
=
True
,
overlaps
=
True
)
self
.
assertTrue
(
documents
)
if
__name__
==
'__main__'
:
unittest
.
main
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment