Skip to content

Commit

Permalink
fix test for sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
eschutho committed Jun 13, 2022
1 parent baa5cd8 commit 4efb13a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/integration_tests/fixtures/datasource.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ def load_dataset_with_columns() -> Generator[SqlaTable, None, None]:
"students",
meta,
Column("id", Integer, primary_key=True),
Column("name", String),
Column("lastname", String),
Column("name", String(255)),
Column("lastname", String(255)),
Column("ds", Date),
)
meta.create_all(engine)
Expand All @@ -203,6 +203,8 @@ def load_dataset_with_columns() -> Generator[SqlaTable, None, None]:
students_table = meta.tables.get("students")
if students_table is not None:
base = declarative_base()
# needed for sqlite
session.commit()
base.metadata.drop_all(engine, [students_table], checkfirst=True)
session.delete(dataset)
session.delete(column)
Expand Down

0 comments on commit 4efb13a

Please sign in to comment.