From d5b5a32a036913c7a605c2e46aad2691e610e7d9 Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Tue, 28 Nov 2023 13:41:25 -0500 Subject: [PATCH] lint: rm debug logging --- bento_lib/search/postgres.py | 2 -- tests/test_search.py | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/bento_lib/search/postgres.py b/bento_lib/search/postgres.py index 2f79434..de53db5 100644 --- a/bento_lib/search/postgres.py +++ b/bento_lib/search/postgres.py @@ -176,8 +176,6 @@ def collect_resolve_join_tables( relation_sql_template = "{structure_type}_to_record({field})" current_alias, current_alias_str, current_alias_sql_schema = json_schema_to_postgres_schema( new_aliased_resolve_path, schema) - import sys - print(current_alias, current_alias_str, current_alias_sql_schema, file=sys.stderr) current_relation = sql.SQL(relation_sql_template).format( structure_type=sql.SQL(structure_type), # json or jsonb here diff --git a/tests/test_search.py b/tests/test_search.py index fe11412..582725e 100644 --- a/tests/test_search.py +++ b/tests/test_search.py @@ -957,8 +957,7 @@ def test_postgres_invalid_schemas(): def test_postgres_valid_queries(query): e = query["query"] i, p = query["ps"] - sql, params = postgres.search_query_to_psycopg2_sql(e, TEST_SCHEMA, i) - print("Generated SQL", sql) + _, params = postgres.search_query_to_psycopg2_sql(e, TEST_SCHEMA, i) assert params == p