Skip to content

Commit

Permalink
corrected exception name
Browse files Browse the repository at this point in the history
  • Loading branch information
TheChymera committed Jul 3, 2017
1 parent 8d47372 commit e29a57c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions labbookdb/tests/test_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

def test_related_entry_separators():
session, engine = add.load_session("~/somepath.db")
with pytest.raises(Exception) as excinfo:
with pytest.raises(BaseException) as excinfo:
add.get_related_ids(session, engine, "Animal:external_ids.AnimalExternalIdentifier:database.ETH/AIC/cdb&#&identifier.275511")
assert excinfo.value.args[0] == 'No entry was found with a value of "275511" on the "identifier" column of the "AnimalExternalIdentifier" CATEGORY, in the database.'
with pytest.raises(Exception) as excinfo:
with pytest.raises(BaseException) as excinfo:
add.get_related_ids(session, engine, "Animal:external_ids.AnimalExternalIdentifier:database.ETH/AIC/cdb&&identifier.275511")
assert excinfo.value.args[0] == 'No entry was found with a value of "ETH/AIC/cdb" on the "database" column of the "AnimalExternalIdentifier" CATEGORY, in the database.'

0 comments on commit e29a57c

Please sign in to comment.