Skip to content

Commit

Permalink
refactor: make it easier to compare diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
tekumara committed Nov 5, 2024
1 parent bc4997f commit f23fea4
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions tests/test_fakes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1100,16 +1100,16 @@ def test_show_objects(dcur: snowflake.connector.cursor.SnowflakeCursor):
objects = [
{
"created_on": datetime.datetime(1970, 1, 1, 0, 0, tzinfo=pytz.utc),
"name": "EXAMPLE",
"kind": "TABLE",
"database_name": "DB1",
"kind": "TABLE",
"name": "EXAMPLE",
"schema_name": "SCHEMA1",
},
{
"created_on": datetime.datetime(1970, 1, 1, 0, 0, tzinfo=pytz.utc),
"name": "VIEW1",
"kind": "VIEW",
"database_name": "DB1",
"kind": "VIEW",
"name": "VIEW1",
"schema_name": "SCHEMA1",
},
]
Expand All @@ -1120,16 +1120,16 @@ def test_show_objects(dcur: snowflake.connector.cursor.SnowflakeCursor):
*objects,
{
"created_on": datetime.datetime(1970, 1, 1, 0, 0, tzinfo=pytz.utc),
"name": "databases",
"kind": "VIEW",
"database_name": "DB1",
"kind": "VIEW",
"name": "databases",
"schema_name": "information_schema",
},
{
"created_on": datetime.datetime(1970, 1, 1, 0, 0, tzinfo=pytz.utc),
"name": "views",
"kind": "VIEW",
"database_name": "DB1",
"kind": "VIEW",
"name": "views",
"schema_name": "information_schema",
},
]
Expand Down Expand Up @@ -1159,16 +1159,16 @@ def test_show_schemas(dcur: snowflake.connector.cursor.SnowflakeCursor):
assert dcur.fetchall() == [
{
"created_on": datetime.datetime(1970, 1, 1, 0, 0, tzinfo=pytz.utc),
"name": "SCHEMA1",
"kind": None,
"database_name": "DB1",
"kind": None,
"name": "SCHEMA1",
"schema_name": None,
},
{
"created_on": datetime.datetime(1970, 1, 1, 0, 0, tzinfo=pytz.utc),
"name": "information_schema",
"kind": None,
"database_name": "DB1",
"kind": None,
"name": "information_schema",
"schema_name": None,
},
]
Expand All @@ -1182,9 +1182,9 @@ def test_show_tables(dcur: snowflake.connector.cursor.SnowflakeCursor):
objects = [
{
"created_on": datetime.datetime(1970, 1, 1, 0, 0, tzinfo=pytz.utc),
"name": "EXAMPLE",
"kind": "TABLE",
"database_name": "DB1",
"kind": "TABLE",
"name": "EXAMPLE",
"schema_name": "SCHEMA1",
},
]
Expand Down

0 comments on commit f23fea4

Please sign in to comment.