From 037607ff192cc924a282f08390c69cef83aa47a5 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 4 Mar 2021 11:38:50 +0100 Subject: [PATCH] Refs #31936 -- Added tests for __in lookup on JSONField key transforms with booleans. --- tests/model_fields/test_jsonfield.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/model_fields/test_jsonfield.py b/tests/model_fields/test_jsonfield.py index 89b78de708..4fc243945a 100644 --- a/tests/model_fields/test_jsonfield.py +++ b/tests/model_fields/test_jsonfield.py @@ -779,6 +779,8 @@ class TestQuerying(TestCase): ('value__bar__in', [['foo', 'bar']], [self.objs[7]]), ('value__bar__in', [['foo', 'bar'], ['a']], [self.objs[7]]), ('value__bax__in', [{'foo': 'bar'}, {'a': 'b'}], [self.objs[7]]), + ('value__h__in', [True, 'foo'], [self.objs[4]]), + ('value__i__in', [False, 'foo'], [self.objs[4]]), ] for lookup, value, expected in tests: with self.subTest(lookup=lookup, value=value):