2323from math import ceil
2424from ..cim_tests import FieldTestHelper
2525from ..utilities .log_helper import format_search_query_log
26+ from ..utilities .log_helper import get_table_output
2627
2728MAX_TIME_DIFFERENCE = 45
2829LOGGER = logging .getLogger ("pytest-splunk-addon" )
@@ -145,7 +146,7 @@ def test_indextime_key_fields(
145146 missing_keys .append ([each_field , fields_to_check [each_field ]])
146147 final_str = ""
147148 if value_list :
148- result_str = FieldTestHelper . get_table_output (
149+ result_str = get_table_output (
149150 headers = ["Key_field" , "Expected_values" , "Actual_values" ],
150151 value_list = [
151152 [
@@ -159,7 +160,7 @@ def test_indextime_key_fields(
159160 final_str += f"Some values for the following key fields are missing\n \n { result_str } "
160161
161162 if missing_keys :
162- missing_keys_result_str = FieldTestHelper . get_table_output (
163+ missing_keys_result_str = get_table_output (
163164 headers = ["Key_field" , "Expected_values" ],
164165 value_list = [
165166 [
@@ -309,6 +310,6 @@ def test_indextime_line_breaker(
309310 count_from_results = int (results [0 ].get ("count" ))
310311 LOGGER .debug ("Resulting count:{}" .format (count_from_results ))
311312 assert count_from_results == expected_events_count , (
312- f"{ format_search_query_log (search )} "
313+ f"{ format_search_query_log (query )} "
313314 f"\n Expected count: { expected_events_count } Actual Count: { count_from_results } "
314315 )
0 commit comments