]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
it's OK to pass a dict in - it does the right thing, no need to quote it
authorDamian Dimmich <damian@tauri-tec.com>
Sat, 28 Jun 2014 19:24:36 +0000 (23:24 +0400)
committerDamian Dimmich <damian@tauri-tec.com>
Sat, 28 Jun 2014 19:24:36 +0000 (23:24 +0400)
in the tests.

test/dialect/postgresql/test_types.py

index 6e6e226236e6f0994504d16f6618a826eff2907e..d4d7d37667410bb3fb174e51ff4710d356cf0818 100644 (file)
@@ -2011,7 +2011,7 @@ class JSONBTest(JSONTest):
 
     def test_where_contains(self):
         self._test_where(
-            self.jsoncol.contains('{"k1": "r1v1"}'),
+            self.jsoncol.contains({"k1": "r1v1"}),
             "test_table.test_column @> %(test_column_1)s"
         )