Skip to content

Commit fd7a7a9

Browse files
committed
Revert sort_by=None
1 parent c3391d5 commit fd7a7a9

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

indra/tests/test_db_rest.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,18 @@ def test_null_request():
4949
@pytest.mark.nonpublic
5050
@pytest.mark.slow
5151
def test_large_request():
52-
__check_request(100, agents=['AKT1'], sort_by=None)
52+
__check_request(100, agents=['AKT1'])
5353

5454

5555
@pytest.mark.nonpublic
5656
@pytest.mark.slow
5757
def test_bigger_request():
58-
__check_request(100, agents=['MAPK1'], sort_by=None)
58+
__check_request(100, agents=['MAPK1'])
5959

6060

6161
@pytest.mark.nonpublic
6262
def test_timeout_no_persist_gcg():
63-
resp = dbr.get_statements(agents=["GCG"], persist=False, timeout=0, sort_by=None)
63+
resp = dbr.get_statements(agents=["GCG"], persist=False, timeout=0)
6464
assert resp.is_working(), "Lookup resolved too fast."
6565
resp.wait_until_done(40) # typically 20-30 s when slow/uncached
6666
assert len(resp.statements) > 0.9*EXPECTED_BATCH_SIZE, len(resp.statements)
@@ -71,8 +71,7 @@ def test_timeout_no_persist_type_object():
7171
resp = dbr.get_statements(stmt_type='phosphorylation',
7272
object="NFkappaB@FPLX",
7373
persist=False,
74-
timeout=0,
75-
sort_by=None)
74+
timeout=0)
7675
assert resp.is_working(), "Lookup resolved too fast."
7776
resp.wait_until_done(70)
7877
assert len(resp.statements) > 0.9*EXPECTED_BATCH_SIZE, len(resp.statements)
@@ -81,7 +80,7 @@ def test_timeout_no_persist_type_object():
8180
@pytest.mark.nonpublic
8281
@pytest.mark.slow
8382
def test_too_big_request_no_persist():
84-
resp_some = __check_request(60, agents=['TP53'], persist=False, sort_by=None)
83+
resp_some = __check_request(60, agents=['TP53'], persist=False)
8584
assert sum(resp_some.get_ev_count(s) is not None
8685
for s in resp_some.statements) == len(resp_some.statements), \
8786
"Counts dict was improperly handled."
@@ -248,7 +247,7 @@ def test_get_statement_queries():
248247
@pytest.mark.nonpublic
249248
def test_get_statements_end_on_limit():
250249
"""Test that the query ends when the limit is reached"""
251-
p = dbr.get_statements(subject="TNF", limit=1400, timeout=1, sort_by=None)
250+
p = dbr.get_statements(subject="TNF", limit=1400, timeout=1)
252251
try:
253252
t = 0
254253
violations = 0
@@ -295,7 +294,7 @@ def test_get_statements_strict_stop_long():
295294
timeout = 70 # Typically 30+ s when slow/uncached
296295
start = datetime.now()
297296
p = dbr.get_statements(
298-
"VEGF", timeout=timeout, strict_stop=True, sort_by=None
297+
"VEGF", timeout=timeout, strict_stop=True
299298
)
300299
end = datetime.now()
301300
sleep(5)

0 commit comments

Comments
 (0)