Skip to content

Commit

Permalink
Revise allow null test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry committed Apr 17, 2020
1 parent bd448f8 commit f2fadb5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/tests/test_5_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,10 @@ def test_532_dotfield(self):
assert "MF" in rdefault["go"].keys()

def test_541_list_null(self):
##
# TODO test.test2 syntax is non deterministic, does not make sense to inject
##
res = self.request('gene/1017?always_list=entrezgene&allow_null=test.test2').json()
res = self.request('gene/1017?always_list=entrezgene&allow_null=accession.test').json()
assert 'entrezgene' in res
assert isinstance(res['entrezgene'], list)
assert 'test' in res
assert 'test2' in res['test']
assert res['test']['test2'] is None
assert res['accession']['test'] is None


def msgpack_ok(packed_bytes, checkerror=True):
Expand Down

0 comments on commit f2fadb5

Please sign in to comment.