Skip to content

Commit 58781f1

Browse files
committed
PYTHON-1014 - Minor test fix
1 parent ab40036 commit 58781f1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/test_collection.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2148,7 +2148,10 @@ def test_find_command_generation(self):
21482148
cmd = _gen_find_command(
21492149
'coll', {'$query': {'foo': 1}, '$dumb': 2}, None, 0, 0, 0, None)
21502150
self.assertEqual(
2151-
cmd, SON([('find', 'coll'), ('$dumb', 2), ('filter', {'foo': 1})]))
2151+
cmd.to_dict(),
2152+
SON([('find', 'coll'),
2153+
('$dumb', 2),
2154+
('filter', {'foo': 1})]).to_dict())
21522155

21532156

21542157
if __name__ == "__main__":

0 commit comments

Comments
 (0)