Skip to content

Commit

Permalink
Update test suite and example script to remove superfluous settings
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
  • Loading branch information
susodapop committed Jul 12, 2023
1 parent 4fb6716 commit 4c3ed8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/sqlalchemy.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class SampleObject(base):

name = Column(String(255), primary_key=True)
episodes = Column(Integer)
some_bool = Column(BOOLEAN(create_constraint=False))
some_bool = Column(BOOLEAN)


base.metadata.create_all()
Expand Down
8 changes: 4 additions & 4 deletions tests/e2e/sqlalchemy/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def test_create_table_not_null(db_engine, metadata_obj: MetaData):
metadata_obj,
Column("name", String(255)),
Column("episodes", Integer),
Column("some_bool", BOOLEAN(create_constraint=False), nullable=False),
Column("some_bool", BOOLEAN, nullable=False),
)

metadata_obj.create_all()
Expand Down Expand Up @@ -201,7 +201,7 @@ def test_create_insert_drop_table_core(base, db_engine, metadata_obj: MetaData):
metadata_obj,
Column("name", String(255)),
Column("episodes", Integer),
Column("some_bool", BOOLEAN(create_constraint=False)),
Column("some_bool", BOOLEAN),
Column("dollars", DECIMAL(10, 2)),
)

Expand Down Expand Up @@ -240,7 +240,7 @@ class SampleObject(base):

name = Column(String(255), primary_key=True)
episodes = Column(Integer)
some_bool = Column(BOOLEAN(create_constraint=False))
some_bool = Column(BOOLEAN)

base.metadata.create_all()

Expand Down Expand Up @@ -272,7 +272,7 @@ def test_dialect_type_mappings(base, db_engine, metadata_obj: MetaData):
metadata_obj,
Column("string_example", String(255)),
Column("integer_example", Integer),
Column("boolean_example", BOOLEAN(create_constraint=False)),
Column("boolean_example", BOOLEAN),
Column("decimal_example", DECIMAL(10, 2)),
Column("date_example", Date),
)
Expand Down

0 comments on commit 4c3ed8e

Please sign in to comment.