Skip to content

Commit

Permalink
Add test for text processor.
Browse files Browse the repository at this point in the history
  • Loading branch information
plypaul committed Aug 2, 2024
1 parent 6bf22b1 commit 8809956
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/test_text_processor.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# import logging
# import time
#
# from dbt_semantic_interfaces.parsing.text_input.ti_processor import QueryItemTextProcessor
# from dbt_semantic_interfaces.parsing.text_input.valid_method import ConfiguredValidMethodMapping
#
#
# logger = logging.getLogger(__name__)
#
#
# def test_text_processor() -> None:
# text_processor = QueryItemTextProcessor()
# saved_query_count = 80
# item_count = 100
#
# start_time = time.time()
# for _ in range(saved_query_count):
# for _ in range(item_count):
# text_processor.collect_descriptions_from_template(
# "{{ TimeDimension('metric_time') }}",
# ConfiguredValidMethodMapping.DEFAULT_MAPPING
# )
#
# logger.info(f"Test took {time.time() - start_time:.2f}s")

0 comments on commit 8809956

Please sign in to comment.