diff --git a/tests/pipeline/test_tutorials.py b/tests/pipeline/test_tutorials.py deleted file mode 100644 index cf0ed4468..000000000 --- a/tests/pipeline/test_tutorials.py +++ /dev/null @@ -1,31 +0,0 @@ -import importlib -import pytest - -from tests.test_utils import get_path_from_tests_to_current_dir -from dff.utils.testing import check_happy_path, HAPPY_PATH - -dot_path_to_addon = get_path_from_tests_to_current_dir(__file__, separator=".") - - -@pytest.mark.parametrize( - "tutorial_module_name", - [ - "1_basics", - "2_pre_and_post_processors", - "3_pipeline_dict_with_services_basic", - "3_pipeline_dict_with_services_full", - "4_groups_and_conditions_basic", - "4_groups_and_conditions_full", - "5_asynchronous_groups_and_services_basic", - "5_asynchronous_groups_and_services_full", - "6_extra_handlers_basic", - "6_extra_handlers_full", - "7_extra_handlers_and_extensions", - ], -) -def test_tutorials(tutorial_module_name: str): - try: - tutorial_module = importlib.import_module(f"tutorials.{dot_path_to_addon}.{tutorial_module_name}") - except ModuleNotFoundError as e: - pytest.skip(f"dependencies unavailable: {e.msg}") - check_happy_path(tutorial_module.pipeline, HAPPY_PATH) diff --git a/tests/script/core/test_tutorials.py b/tests/script/core/test_tutorials.py deleted file mode 100644 index 8a56867e2..000000000 --- a/tests/script/core/test_tutorials.py +++ /dev/null @@ -1,30 +0,0 @@ -import importlib -import logging - -import pytest - -from tests.test_utils import get_path_from_tests_to_current_dir -from dff.utils.testing import check_happy_path - -logger = logging.Logger(__name__) - -dot_path_to_addon = get_path_from_tests_to_current_dir(__file__, separator=".") - - -@pytest.mark.parametrize( - "tutorial_module_name", - [ - "1_basics", - "2_conditions", - "3_responses", - "4_transitions", - "5_global_transitions", - "6_context_serialization", - "7_pre_response_processing", - "8_misc", - "9_pre_transitions_processing", - ], -) -def test_tutorials(tutorial_module_name: str): - tutorial_module = importlib.import_module(f"tutorials.{dot_path_to_addon}.{tutorial_module_name}") - check_happy_path(tutorial_module.pipeline, tutorial_module.happy_path) diff --git a/tests/script/responses/test_tutorials.py b/tests/script/responses/test_tutorials.py deleted file mode 100644 index 899223969..000000000 --- a/tests/script/responses/test_tutorials.py +++ /dev/null @@ -1,17 +0,0 @@ -import importlib - -import pytest - -from tests.test_utils import get_path_from_tests_to_current_dir -from dff.utils.testing import check_happy_path, default_comparer - -dot_path_to_addon = get_path_from_tests_to_current_dir(__file__, separator=".") - - -@pytest.mark.parametrize( - "tutorial_module_name", - ["1_basics", "2_buttons", "3_media", "4_multi_message"], -) -def test_tutorials(tutorial_module_name: str): - tutorial_module = importlib.import_module(f"tutorials.{dot_path_to_addon}.{tutorial_module_name}") - check_happy_path(tutorial_module.pipeline, tutorial_module.happy_path, default_comparer) diff --git a/tests/utils/test_tutorials.py b/tests/utils/test_tutorials.py deleted file mode 100644 index 51903ae7c..000000000 --- a/tests/utils/test_tutorials.py +++ /dev/null @@ -1,17 +0,0 @@ -import importlib - -import pytest - -from tests.test_utils import get_path_from_tests_to_current_dir -from dff.utils.testing import check_happy_path - -dot_path_to_addon = get_path_from_tests_to_current_dir(__file__, separator=".") - - -@pytest.mark.parametrize( - "tutorial_module_name", - ["1_cache", "2_lru_cache"], -) -def test_tutorials(tutorial_module_name: str): - tutorial_module = importlib.import_module(f"tutorials.{dot_path_to_addon}.{tutorial_module_name}") - check_happy_path(tutorial_module.pipeline, tutorial_module.happy_path)