Skip to content

Commit e94e56e

Browse files
authored
Merge pull request #93 from lsetiawan/patch_test
Assert on any nulls
2 parents df075e3 + bab686f commit e94e56e

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)