From c1f877279a50d5af6d8e667f05122b9b1f29c6df Mon Sep 17 00:00:00 2001 From: index-git Date: Thu, 21 Sep 2023 10:15:47 +0200 Subject: [PATCH] Fix typo --- src/layman/layer/util.py | 2 +- src/layman/layer/util_test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layman/layer/util.py b/src/layman/layer/util.py index 83dbfbbf9..d20bda218 100644 --- a/src/layman/layer/util.py +++ b/src/layman/layer/util.py @@ -418,7 +418,7 @@ def parse_and_validate_external_table_uri_str(external_table_uri_str): if unsafe_column_names: raise LaymanError(2, { 'parameter': 'external_table_uri', - 'message': 'Expected table with all column names mathing regular expression ' + SAFE_PG_IDENTIFIER_PATTERN, + 'message': 'Expected table with all column names matching regular expression ' + SAFE_PG_IDENTIFIER_PATTERN, 'found': { 'external_table_uri': external_table_uri_str, 'schema': schema, diff --git a/src/layman/layer/util_test.py b/src/layman/layer/util_test.py index 81e1f57be..e4faf2066 100644 --- a/src/layman/layer/util_test.py +++ b/src/layman/layer/util_test.py @@ -399,7 +399,7 @@ def test_parse_external_table_uri_str(external_table_uri_str, exp_result): 'code': 2, 'data': { 'parameter': 'external_table_uri', - 'message': 'Expected table with all column names mathing regular expression ^[a-zA-Z_][a-zA-Z_0-9]*$', + 'message': 'Expected table with all column names matching regular expression ^[a-zA-Z_][a-zA-Z_0-9]*$', 'found': { 'external_table_uri': 'postgresql://docker:docker@postgresql:5432/external_test_db?schema=schema_name&table=table_with_unsafe_column_name&geo_column=geo_wkb_column', 'schema': 'schema_name',