Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lolopinto committed Aug 22, 2023
1 parent 10a84f7 commit 6d63767
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
6 changes: 2 additions & 4 deletions python/auto_schema/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ def delete_path():
path = r.get_schema_path()

# delete temp directory which was created
# if os.path.isdir(path):
# shutil.rmtree(path)
if os.path.isdir(path):
shutil.rmtree(path)

request.addfinalizer(delete_path)

Expand Down Expand Up @@ -611,8 +611,6 @@ def metadata_arrays_table_rows():
"id": 3,
"uuid_list": [uuid.uuid4(), uuid.uuid4()]
},


]


Expand Down
12 changes: 6 additions & 6 deletions python/auto_schema/tests/runner_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -782,12 +782,12 @@ class TestPostgresRunner(BaseTestRunner):
@pytest.mark.parametrize(
"new_metadata_func, expected_message",
[
# (conftest.metadata_with_table_text_changed,
# "modify column email_address type from VARCHAR(255) to TEXT"),
# (conftest.metadata_with_timestamp_changed,
# "modify column created_at type from DATE to TIMESTAMP"),
# (conftest.metadata_with_nullable_changed,
# "modify nullable value of column last_name from False to True"),
(conftest.metadata_with_table_text_changed,
"modify column email_address type from VARCHAR(255) to TEXT"),
(conftest.metadata_with_timestamp_changed,
"modify column created_at type from DATE to TIMESTAMP"),
(conftest.metadata_with_nullable_changed,
"modify nullable value of column last_name from False to True"),
(conftest.metadata_with_nullable_changed_to_false,
"modify nullable value of column bio from True to False"),
])
Expand Down

0 comments on commit 6d63767

Please sign in to comment.