Skip to content

Commit

Permalink
SA20: Fix SqlAlchemyDictTypeTest
Browse files Browse the repository at this point in the history
Don't use `autoload_with` on table `mytable`, because it will never be
persisted to a database, so it can not be inspected.
  • Loading branch information
amotl committed Dec 21, 2022
1 parent 849cb37 commit 7ef37c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/crate/client/sqlalchemy/tests/dict_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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', ''))
Expand Down

0 comments on commit 7ef37c1

Please sign in to comment.