Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix error message #132

Merged
merged 2 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def compare_table_definitions(new_definition, old_definition, compare_columns=Tr
old_projection = old_definition.get("projection")
if new_projection != old_projection:
results.append(
f"different projections: {new_projection} changed to {old_projection}"
f"different projections: {old_projection} changed to {new_projection}"
)

column_type_name = get_column_type_name(
Expand Down
2 changes: 1 addition & 1 deletion tests/validations/test_table_definitions_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def test_table_definitions_check_incorrect_projection():
).check_table_definitions(current_definitions)

assert len(diff) == 1
assert diff[0] == "different projections: 4326 changed to 28992"
assert diff[0] == "different projections: 28992 changed to 4326"


def test_table_definitions_check_incorrect_column_name():
Expand Down
Loading