Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 0ecf54f

Browse files
committed
Small fixes; BigQuery tests all pass.
1 parent def334b commit 0ecf54f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/common.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from data_diff import database as db
44
import logging
55

6-
logging.basicConfig(level=logging.WARN)
6+
logging.basicConfig(level=logging.INFO)
77

88
TEST_MYSQL_CONN_STRING: str = "mysql://mysql:Password1@localhost/mysql"
99
TEST_POSTGRES_CONN_STRING: str = None
@@ -29,7 +29,9 @@
2929

3030
for k, v in CONN_STRINGS.items():
3131
if v is None:
32-
print(f"Warning: Connection to {k} not configured")
32+
logging.warn(f"Connection to {k} not configured")
33+
else:
34+
logging.info(f"Testing database: {k}")
3335

3436
CONN_STRINGS = {k: v for k, v in CONN_STRINGS.items() if v is not None}
3537

tests/test_database_types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
CONNS = {k: db.connect_to_uri(v) for k, v in CONN_STRINGS.items()}
1414

15+
CONNS[db.MySQL].query("SET @@session.time_zone='+00:00'", None)
16+
1517
TYPE_SAMPLES = {
1618
"int": [127, -3, -9, 37, 15, 127],
1719
"datetime_no_timezone": [

0 commit comments

Comments
 (0)