From 111c998774ab6610c79c8a6e7e2bbc62df6351d4 Mon Sep 17 00:00:00 2001 From: simos Date: Wed, 30 Aug 2023 14:21:52 +0300 Subject: [PATCH] removed some commented code --- tests/standalone_tests/test_tables.py | 26 ------------------- .../test_views_and_filters.py | 22 ---------------- 2 files changed, 48 deletions(-) diff --git a/tests/standalone_tests/test_tables.py b/tests/standalone_tests/test_tables.py index fbaae356f..582db92d9 100644 --- a/tests/standalone_tests/test_tables.py +++ b/tests/standalone_tests/test_tables.py @@ -18,7 +18,6 @@ create_table_task_signature = get_celery_task_signature("create_table") get_tables_task_signature = get_celery_task_signature("get_tables") -# insert_data_to_table_task_signature = get_celery_task_signature("insert_data_to_table") get_table_data_task_signature = get_celery_task_signature("get_table_data") @@ -80,18 +79,6 @@ def test_create_and_find_tables( assert table_1_info.name in tables values = [[1, 0.1, "test1"], [2, 0.2, None], [3, 0.3, "test3"]] - # async_result = localnode1_celery_app.queue_task( - # task_signature=insert_data_to_table_task_signature, - # logger=StdOutputLogger(), - # request_id=request_id, - # table_name=table_1_info.name, - # values=values, - # ) - # localnode1_celery_app.get_result( - # async_result=async_result, - # logger=StdOutputLogger(), - # timeout=TASKS_TIMEOUT, - # ) insert_data_to_db(table_1_info.name, values, MONETDB_LOCALNODE1_PORT) async_result = localnode1_celery_app.queue_task( @@ -145,19 +132,6 @@ def test_create_and_find_tables( assert table_2_info.name in tables values = [[1, 0.1, "test1"], [2, None, "None"], [3, 0.3, None]] - - # async_result = localnode1_celery_app.queue_task( - # task_signature=insert_data_to_table_task_signature, - # logger=StdOutputLogger(), - # request_id=request_id, - # table_name=table_2_info.name, - # values=values, - # ) - # localnode1_celery_app.get_result( - # async_result=async_result, - # logger=StdOutputLogger(), - # timeout=TASKS_TIMEOUT, - # ) insert_data_to_db(table_2_info.name, values, MONETDB_LOCALNODE1_PORT) async_result = localnode1_celery_app.queue_task( diff --git a/tests/standalone_tests/test_views_and_filters.py b/tests/standalone_tests/test_views_and_filters.py index 18e3d0424..424c0671e 100644 --- a/tests/standalone_tests/test_views_and_filters.py +++ b/tests/standalone_tests/test_views_and_filters.py @@ -117,17 +117,6 @@ def test_view_without_filters( ) values = [[1, 0.1, "test1"], [2, 0.2, None], [3, 0.3, "test3"]] - # task_signature = get_celery_task_signature("insert_data_to_table") - # async_result = localnode1_celery_app.queue_task( - # task_signature=task_signature, - # logger=StdOutputLogger(), - # request_id=request_id, - # table_name=table_info.name, - # values=values, - # ) - # localnode1_celery_app.get_result( - # async_result=async_result, logger=StdOutputLogger(), timeout=TASKS_TIMEOUT - # ) insert_data_to_db(table_info.name, values, MONETDB_LOCALNODE1_PORT) columns = ["col1", "col3"] @@ -220,17 +209,6 @@ def test_view_with_filters( ) values = [[1, 0.1, "test1"], [2, 0.2, None], [3, 0.3, "test3"]] - # task_signature = get_celery_task_signature("insert_data_to_table") - # async_result = localnode1_celery_app.queue_task( - # task_signature=task_signature, - # logger=StdOutputLogger(), - # request_id=request_id, - # table_name=table_info.name, - # values=values, - # ) - # localnode1_celery_app.get_result( - # async_result=async_result, logger=StdOutputLogger(), timeout=TASKS_TIMEOUT - # ) insert_data_to_db(table_info.name, values, MONETDB_LOCALNODE1_PORT) columns = ["col1", "col3"]