diff --git a/geopackage_validator/validations/table_definitions_check.py b/geopackage_validator/validations/table_definitions_check.py index efcaa47..bfcc365 100644 --- a/geopackage_validator/validations/table_definitions_check.py +++ b/geopackage_validator/validations/table_definitions_check.py @@ -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( diff --git a/tests/validations/test_table_definitions_check.py b/tests/validations/test_table_definitions_check.py index 90bc7c6..d495609 100644 --- a/tests/validations/test_table_definitions_check.py +++ b/tests/validations/test_table_definitions_check.py @@ -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():