Skip to content

Commit

Permalink
Avoid multistatements in test
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Dec 29, 2023
1 parent e5e1557 commit 8615b64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ def setUpClass(cls):
cls.db_name = os.environ.get("AURORA_DB_NAME", __name__)
with aurora_data_api.connect(database=cls.db_name) as conn, conn.cursor() as cur:
try:
cur.execute('CREATE EXTENSION IF NOT EXISTS "uuid-ossp"')
cur.execute('DROP TABLE IF EXISTS aurora_data_api_test')
cur.execute(
"""
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
DROP TABLE IF EXISTS aurora_data_api_test;
CREATE TABLE aurora_data_api_test (
id SERIAL,
name TEXT,
doc JSONB DEFAULT '{}',
num NUMERIC (10, 5) DEFAULT 0.0,
ts TIMESTAMP WITHOUT TIME ZONE
)
"""
"""
)
cur.executemany(
"""
Expand Down

0 comments on commit 8615b64

Please sign in to comment.