Skip to content

Commit

Permalink
Tests(blob): Use byte string for test
Browse files Browse the repository at this point in the history
  • Loading branch information
phdru committed Feb 23, 2018
1 parent 38a8348 commit 2a7d285
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sqlobject/tests/test_blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ def test_BLOBCol():
else:
data = bytes(range(256))

prof = ImageData()
prof.image = data
prof = ImageData(image=data)
iid = prof.id

ImageData._connection.cache.clear()

prof2 = ImageData.get(iid)
assert prof2.image == data

ImageData(image='string')
assert ImageData.selectBy(image='string').count() == 1
ImageData(image=b'string')
assert ImageData.selectBy(image=b'string').count() == 1

0 comments on commit 2a7d285

Please sign in to comment.