Skip to content

Commit 9b3170b

Browse files
committed
Test: Use a better table and column name
1 parent 1756f64 commit 9b3170b

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/pyathena/sqlalchemy/test_base.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -361,12 +361,12 @@ def test_select_offset_limit(self, engine):
361361

362362
def test_reserved_words(self, engine):
363363
"""Presto uses double quotes, not backticks"""
364-
fake_table = Table("select", MetaData(), Column("current_timestamp", types.String()))
365-
query = fake_table.select().where(fake_table.c.current_timestamp == "a").compile(dialect=engine.dialect).string
366-
assert '"select"' in query
367-
assert '"current_timestamp"' in query
368-
assert "`select`" not in query
369-
assert "`current_timestamp`" not in query
364+
fake_table = Table("bernoulli", MetaData(), Column("current_catalog", types.String()))
365+
query = fake_table.select().where(fake_table.c.current_catalog == "a").compile(dialect=engine.dialect).string
366+
assert '"bernoulli"' in query
367+
assert '"current_catalog"' in query
368+
assert "`bernoulli`" not in query
369+
assert "`current_catalog`" not in query
370370

371371
def test_get_column_type(self, engine):
372372
engine, conn = engine

0 commit comments

Comments
 (0)