Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SOaAS
dbxref
Commits
0547ab60
Commit
0547ab60
authored
Feb 17, 2020
by
Jan Keller
Browse files
Unittest for HAMAP retriever hamap.py
parent
02596f8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_hamap.py
0 → 100644
View file @
0547ab60
#!/usr/bin/env python3
import
unittest
from
dbxref.retrieve
import
hamap
class
TestHAMAP
(
unittest
.
TestCase
):
def
test_output
(
self
):
"""test if HAMAP retriever gives any output, ergo functions in any way"""
documents
=
hamap
.
retrieve
({
"db"
:
"HAMAP"
,
"id"
:
"HM:MF_00607"
},
matrix
=
True
)
self
.
assertTrue
(
documents
)
if
__name__
==
"__main__"
:
unittest
.
main
()
Write
Preview
Markdown
is supported
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