Skip to content

Commit bab686f

Browse files
committed
Assert on any nulls
1 parent df075e3 commit bab686f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/test_odm2/test_readservice.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,7 @@ def test_getRelatedModelsByCode(self):
186186

187187
# test invalid argument
188188
resapi = self.reader.getRelatedModels(code = 234123)
189-
assert resapi == []
190-
# MySQL is very relaxed about this,
191-
# should be `resapi is None` if PostgreSQL,
192-
# because code type is not string
189+
assert not resapi
193190

194191

195192

0 commit comments

Comments
 (0)