We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
eq
ne
1 parent 6ab95ab commit bec8207Copy full SHA for bec8207
tests/columns/test_boolean.py
@@ -31,3 +31,22 @@ def test_return_type(self):
31
.run_sync()["boolean"],
32
expected,
33
)
34
+
35
+ def test_eq_and_ne(self):
36
+ """
37
+ Make sure the `eq` and `ne` methods works correctly.
38
39
+ MyTable.insert(
40
+ MyTable(boolean=True),
41
+ MyTable(boolean=False),
42
43
+ ).run_sync()
44
45
+ self.assertEqual(
46
+ MyTable.count().where(MyTable.boolean.eq(True)).run_sync(), 2
47
+ )
48
49
50
+ MyTable.count().where(MyTable.boolean.ne(True)).run_sync(), 1
51
52
0 commit comments