Skip to content

Commit

Permalink
use one() to return result
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Jun 3, 2017
1 parent 9210049 commit 6cb02d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ def test_import_unihan_raw(zip_file, session, engine, unihan_options):

assert session.query(Unhn).count() == len(data)

assert session.query(Unhn).filter_by(char=u'㐀').first().ucn == 'U+3400'
assert session.query(Unhn).filter_by(char=u'㐀').one().ucn == 'U+3400'

0 comments on commit 6cb02d0

Please sign in to comment.