Skip to content

Commit 6c8d9a7

Browse files
haohangyanbgyori
authored andcommitted
Add test for source_count in test_stmt_to_rows
1 parent 5a2a35d commit 6c8d9a7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

indra/tests/test_indranet_assembler.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,3 +337,9 @@ def test_stmt_to_rows():
337337
assert len(rows) == 1
338338
assert rows[0] == ['a', 'b', 'HGNC', '1', 'TEXT', 'b', None, None,
339339
'Activation', 1, 8197018847132618, 1, {None: 1}, None]
340+
341+
source_count = {-25125767941752990: {'db1': 1}}
342+
rows = statement_to_rows(st2, source_counts=source_count)
343+
assert rows[0] == ['a', 'c', 'HGNC', '1', 'TEXT', 'c', None, None,
344+
'Inhibition', 1, -25125767941752990, 0.76, {'db1': 1}, None]
345+

0 commit comments

Comments
 (0)