Skip to content

Commit 8c0b8a3

Browse files
Restrict test to just the created id.
1 parent f773991 commit 8c0b8a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_relational_operand.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ def test_null_dict_restriction():
476476
# https://github.com/datajoint/datajoint-python/issues/824
477477
"""Test a restriction for null using dict"""
478478
F.insert([dict(id=5)])
479-
q = F & 'date is NULL'
479+
q = F & dj.AndList([dict(id=5), 'date is NULL'])
480480
assert len(q) == 1
481-
q = F & dict(date=None)
481+
q = F & dict(id=5, date=None)
482482
assert len(q) == 1

0 commit comments

Comments
 (0)