From 386e2466eaa3bb3044ba61bfdafe137b9c28778a Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Tue, 20 Dec 2022 23:23:36 +0100 Subject: [PATCH] SA20: Fix SqlAlchemyDictTypeTest Don't use `autoload_with` on table `mytable`, because it will never be persisted to a database, so it can not be inspected. --- src/crate/client/sqlalchemy/tests/dict_test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/crate/client/sqlalchemy/tests/dict_test.py b/src/crate/client/sqlalchemy/tests/dict_test.py index 2ffa7f0e..655b55a4 100644 --- a/src/crate/client/sqlalchemy/tests/dict_test.py +++ b/src/crate/client/sqlalchemy/tests/dict_test.py @@ -43,8 +43,7 @@ def setUp(self): self.mytable = sa.Table('mytable', metadata, sa.Column('name', sa.String), - sa.Column('data', Craty), - autoload_with=self.engine) + sa.Column('data', Craty)) def assertSQL(self, expected_str, actual_expr): self.assertEqual(expected_str, str(actual_expr).replace('\n', ''))