Skip to content

Commit

Permalink
Fix get_references test (refs no longer include titles)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpitkin committed Jun 5, 2020
1 parent 0d36c81 commit dfb9b8d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/query_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,20 +308,20 @@ def test_get_references(query):
ref = query.parse_ref('ksm+06')

assert isinstance(ref, string_types)
assert "Tests of General Relativity from Timing the Double Pulsar" in ref
assert "2006, Science, 314, 97" in ref

# test parsing two references
ref = query.parse_ref(['ksm+06', 'abb+18'])

assert len(ref) == 2
assert "Tests of General Relativity from Timing the Double Pulsar" in ref[0]
assert "The NANOGrav 11-year Data Set" in ref[1]
assert "2006, Science, 314, 97" in ref[0]
assert "2018, ApJS, 235, 37" in ref[1]

# test parsing two references (with the second one being gibberish)
ref = query.parse_ref(['ksm+06', 'wlihlacljkblf'])

assert len(ref) == 2
assert "Tests of General Relativity from Timing the Double Pulsar" in ref[0]
assert "2006, Science, 314, 97" in ref[0]
assert ref[1] is None


Expand Down

0 comments on commit dfb9b8d

Please sign in to comment.