diff --git a/src/codegen/git/configs/token.py b/src/codegen/git/configs/token.py index 382840d79..de1a543c3 100644 --- a/src/codegen/git/configs/token.py +++ b/src/codegen/git/configs/token.py @@ -2,11 +2,13 @@ from codegen.git.configs.config import config from codegen.git.schemas.github import GithubType +from codegen.git.schemas.repo_config import RepoConfig logger = logging.getLogger(__name__) -def get_token_for_repo_config(github_type: GithubType = GithubType.GithubEnterprise) -> str: +def get_token_for_repo_config(repo_config: RepoConfig, github_type: GithubType = GithubType.GithubEnterprise) -> str: + # TODO: implement config such that we can retrieve tokens for different repos if github_type == GithubType.GithubEnterprise: return config.LOWSIDE_TOKEN elif github_type == GithubType.Github: diff --git a/src/codegen/git/utils/clone_url.py b/src/codegen/git/utils/clone_url.py index 63bb8711e..f53a7e518 100644 --- a/src/codegen/git/utils/clone_url.py +++ b/src/codegen/git/utils/clone_url.py @@ -24,7 +24,7 @@ def get_authenticated_clone_url_for_repo_config( github_type: GithubType = GithubType.GithubEnterprise, ) -> str: git_url = get_clone_url_for_repo_config(repo, github_type) - token = get_token_for_repo_config(github_type=github_type) + token = get_token_for_repo_config(repo_config=repo, github_type=github_type) return f"https://x-access-token:{token}@{git_url}" diff --git a/src/codegen/sdk/code_generation/doc_utils/skills.py b/src/codegen/sdk/code_generation/doc_utils/skills.py index d09228ba6..2f5ee926e 100644 --- a/src/codegen/sdk/code_generation/doc_utils/skills.py +++ b/src/codegen/sdk/code_generation/doc_utils/skills.py @@ -10,7 +10,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.skill_implementation import SkillImplementation from codegen.sdk.skills.core.utils import get_all_evaluation_skills -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod def remove_leading_tab_or_spaces(text: str) -> str: diff --git a/src/codegen/sdk/testing/models.py b/src/codegen/sdk/testing/models.py index 11c192dd9..50dec3633 100644 --- a/src/codegen/sdk/testing/models.py +++ b/src/codegen/sdk/testing/models.py @@ -29,7 +29,7 @@ except (FileNotFoundError, json.decoder.JSONDecodeError): REPO_ID_TO_URL = {} if TYPE_CHECKING: - from codemods.canonical.codemod import Codemod + from codemods.codemod import Codemod @unique diff --git a/src/codegen/sdk/testing/test_discovery.py b/src/codegen/sdk/testing/test_discovery.py index cf4f95c71..60ef66159 100644 --- a/src/codegen/sdk/testing/test_discovery.py +++ b/src/codegen/sdk/testing/test_discovery.py @@ -14,7 +14,7 @@ from codegen.sdk.testing.constants import DIFF_FILEPATH from codegen.sdk.testing.models import BASE_PATH, CODEMOD_PATH, REPO_ID_TO_URL, TEST_DIR, VERIFIED_CODEMOD_DATA_DIR, VERIFIED_CODEMOD_DIFFS, ClonedRepoTestCase, CodemodMetadata, Repo, Size from codegen.sdk.testing.verified_codemod_utils import CodemodAPI, RepoCodemodMetadata, SkillTestConfig, anonymize_id -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod def find_repos( diff --git a/src/codemods/canonical/add_function_parameter_type_annotations/add_function_parameter_type_annotations.py b/src/codemods/canonical/add_function_parameter_type_annotations/add_function_parameter_type_annotations.py index 5ef321756..33197f335 100644 --- a/src/codemods/canonical/add_function_parameter_type_annotations/add_function_parameter_type_annotations.py +++ b/src/codemods/canonical/add_function_parameter_type_annotations/add_function_parameter_type_annotations.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/add_internal_to_non_exported_components/add_internal_to_non_exported_components.py b/src/codemods/canonical/add_internal_to_non_exported_components/add_internal_to_non_exported_components.py index ce8c0df50..ce8cf1ae7 100644 --- a/src/codemods/canonical/add_internal_to_non_exported_components/add_internal_to_non_exported_components.py +++ b/src/codemods/canonical/add_internal_to_non_exported_components/add_internal_to_non_exported_components.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/bang_bang_to_boolean/bang_bang_to_boolean.py b/src/codemods/canonical/bang_bang_to_boolean/bang_bang_to_boolean.py index 0421bd8a4..daf562148 100644 --- a/src/codemods/canonical/bang_bang_to_boolean/bang_bang_to_boolean.py +++ b/src/codemods/canonical/bang_bang_to_boolean/bang_bang_to_boolean.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/built_in_type_annotation/built_in_type_annotation.py b/src/codemods/canonical/built_in_type_annotation/built_in_type_annotation.py index b2eb07e86..83a96160a 100644 --- a/src/codemods/canonical/built_in_type_annotation/built_in_type_annotation.py +++ b/src/codemods/canonical/built_in_type_annotation/built_in_type_annotation.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/change_component_tag_names/change_component_tag_names.py b/src/codemods/canonical/change_component_tag_names/change_component_tag_names.py index 2ab7e8ba6..d8ad708d8 100644 --- a/src/codemods/canonical/change_component_tag_names/change_component_tag_names.py +++ b/src/codemods/canonical/change_component_tag_names/change_component_tag_names.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/classnames_to_backtick.py b/src/codemods/canonical/classnames_to_backtick.py index ab3ce5942..25e014331 100644 --- a/src/codemods/canonical/classnames_to_backtick.py +++ b/src/codemods/canonical/classnames_to_backtick.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/convert_array_type_to_square_bracket/convert_array_type_to_square_bracket.py b/src/codemods/canonical/convert_array_type_to_square_bracket/convert_array_type_to_square_bracket.py index 364491b33..28ab61383 100644 --- a/src/codemods/canonical/convert_array_type_to_square_bracket/convert_array_type_to_square_bracket.py +++ b/src/codemods/canonical/convert_array_type_to_square_bracket/convert_array_type_to_square_bracket.py @@ -4,7 +4,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/convert_attribute_to_decorator/convert_attribute_to_decorator.py b/src/codemods/canonical/convert_attribute_to_decorator/convert_attribute_to_decorator.py index c566588f2..65f74592d 100644 --- a/src/codemods/canonical/convert_attribute_to_decorator/convert_attribute_to_decorator.py +++ b/src/codemods/canonical/convert_attribute_to_decorator/convert_attribute_to_decorator.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/convert_comments_to_JSDoc_style/convert_comments_to_JSDoc_style.py b/src/codemods/canonical/convert_comments_to_JSDoc_style/convert_comments_to_JSDoc_style.py index 997914586..9a1b10537 100644 --- a/src/codemods/canonical/convert_comments_to_JSDoc_style/convert_comments_to_JSDoc_style.py +++ b/src/codemods/canonical/convert_comments_to_JSDoc_style/convert_comments_to_JSDoc_style.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/convert_docstring_to_google_style/convert_docstring_to_google_style.py b/src/codemods/canonical/convert_docstring_to_google_style/convert_docstring_to_google_style.py index af11b8265..207b7e064 100644 --- a/src/codemods/canonical/convert_docstring_to_google_style/convert_docstring_to_google_style.py +++ b/src/codemods/canonical/convert_docstring_to_google_style/convert_docstring_to_google_style.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/delete_unused_functions/delete_unused_functions.py b/src/codemods/canonical/delete_unused_functions/delete_unused_functions.py index e7a9cf89d..6f1fd5ee1 100644 --- a/src/codemods/canonical/delete_unused_functions/delete_unused_functions.py +++ b/src/codemods/canonical/delete_unused_functions/delete_unused_functions.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/emojify_py_files_codemod/emojify_py_files_codemod.py b/src/codemods/canonical/emojify_py_files_codemod/emojify_py_files_codemod.py index 41180d8a2..8590b4294 100644 --- a/src/codemods/canonical/emojify_py_files_codemod/emojify_py_files_codemod.py +++ b/src/codemods/canonical/emojify_py_files_codemod/emojify_py_files_codemod.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/enum_mover/enum_mover.py b/src/codemods/canonical/enum_mover/enum_mover.py index 58ce4b012..9fa799806 100644 --- a/src/codemods/canonical/enum_mover/enum_mover.py +++ b/src/codemods/canonical/enum_mover/enum_mover.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/insert_arguments_to_decorator/insert_arguments_to_decorator.py b/src/codemods/canonical/insert_arguments_to_decorator/insert_arguments_to_decorator.py index bbc983e0e..5efda2420 100644 --- a/src/codemods/canonical/insert_arguments_to_decorator/insert_arguments_to_decorator.py +++ b/src/codemods/canonical/insert_arguments_to_decorator/insert_arguments_to_decorator.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/invite_factory_create_params/invite_factory_create_params.py b/src/codemods/canonical/invite_factory_create_params/invite_factory_create_params.py index 68a9e1151..105324e4a 100644 --- a/src/codemods/canonical/invite_factory_create_params/invite_factory_create_params.py +++ b/src/codemods/canonical/invite_factory_create_params/invite_factory_create_params.py @@ -4,7 +4,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/js_to_esm_codemod/js_to_esm_codemod.py b/src/codemods/canonical/js_to_esm_codemod/js_to_esm_codemod.py index afe053aa6..794fc7d6b 100644 --- a/src/codemods/canonical/js_to_esm_codemod/js_to_esm_codemod.py +++ b/src/codemods/canonical/js_to_esm_codemod/js_to_esm_codemod.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/mark_as_internal_codemod/mark_as_internal_codemod.py b/src/codemods/canonical/mark_as_internal_codemod/mark_as_internal_codemod.py index d24a68575..272e61258 100644 --- a/src/codemods/canonical/mark_as_internal_codemod/mark_as_internal_codemod.py +++ b/src/codemods/canonical/mark_as_internal_codemod/mark_as_internal_codemod.py @@ -5,7 +5,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/mark_internal_to_module/mark_internal_to_module.py b/src/codemods/canonical/mark_internal_to_module/mark_internal_to_module.py index 6925be766..2e466fb85 100644 --- a/src/codemods/canonical/mark_internal_to_module/mark_internal_to_module.py +++ b/src/codemods/canonical/mark_internal_to_module/mark_internal_to_module.py @@ -4,7 +4,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/mark_is_boolean/mark_is_boolean.py b/src/codemods/canonical/mark_is_boolean/mark_is_boolean.py index 05eac35ab..7d8c4a33d 100644 --- a/src/codemods/canonical/mark_is_boolean/mark_is_boolean.py +++ b/src/codemods/canonical/mark_is_boolean/mark_is_boolean.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/migrate_class_attributes/migrate_class_attributes.py b/src/codemods/canonical/migrate_class_attributes/migrate_class_attributes.py index b6d7a2fee..fdf8c58e9 100644 --- a/src/codemods/canonical/migrate_class_attributes/migrate_class_attributes.py +++ b/src/codemods/canonical/migrate_class_attributes/migrate_class_attributes.py @@ -6,7 +6,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod logger = logging.getLogger(__name__) diff --git a/src/codemods/canonical/move_enums_codemod/move_enums_codemod.py b/src/codemods/canonical/move_enums_codemod/move_enums_codemod.py index aea5bf954..d875473e6 100644 --- a/src/codemods/canonical/move_enums_codemod/move_enums_codemod.py +++ b/src/codemods/canonical/move_enums_codemod/move_enums_codemod.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/move_functions_to_new_file/move_functions_to_new_file.py b/src/codemods/canonical/move_functions_to_new_file/move_functions_to_new_file.py index 88d5291ce..1e7904ab3 100644 --- a/src/codemods/canonical/move_functions_to_new_file/move_functions_to_new_file.py +++ b/src/codemods/canonical/move_functions_to_new_file/move_functions_to_new_file.py @@ -4,7 +4,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/openapi_add_response_none/openapi_add_response_none.py b/src/codemods/canonical/openapi_add_response_none/openapi_add_response_none.py index bb6759db0..309862f99 100644 --- a/src/codemods/canonical/openapi_add_response_none/openapi_add_response_none.py +++ b/src/codemods/canonical/openapi_add_response_none/openapi_add_response_none.py @@ -5,7 +5,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/openapi_no_reference_request/openapi_no_reference_request.py b/src/codemods/canonical/openapi_no_reference_request/openapi_no_reference_request.py index 785074d4e..eba78a889 100644 --- a/src/codemods/canonical/openapi_no_reference_request/openapi_no_reference_request.py +++ b/src/codemods/canonical/openapi_no_reference_request/openapi_no_reference_request.py @@ -5,7 +5,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/pascal_case_symbols/pascal_case_symbols.py b/src/codemods/canonical/pascal_case_symbols/pascal_case_symbols.py index d82a4f7df..79bddf173 100644 --- a/src/codemods/canonical/pascal_case_symbols/pascal_case_symbols.py +++ b/src/codemods/canonical/pascal_case_symbols/pascal_case_symbols.py @@ -6,7 +6,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/pivot_return_types/pivot_return_types.py b/src/codemods/canonical/pivot_return_types/pivot_return_types.py index f426fb1a0..9dd585e3c 100644 --- a/src/codemods/canonical/pivot_return_types/pivot_return_types.py +++ b/src/codemods/canonical/pivot_return_types/pivot_return_types.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/refactor_react_components_into_separate_files/refactor_react_components_into_separate_files.py b/src/codemods/canonical/refactor_react_components_into_separate_files/refactor_react_components_into_separate_files.py index 3be635e58..83fb9e784 100644 --- a/src/codemods/canonical/refactor_react_components_into_separate_files/refactor_react_components_into_separate_files.py +++ b/src/codemods/canonical/refactor_react_components_into_separate_files/refactor_react_components_into_separate_files.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/remove_indirect_imports/remove_indirect_imports.py b/src/codemods/canonical/remove_indirect_imports/remove_indirect_imports.py index 74ad687b7..6b2f13e93 100644 --- a/src/codemods/canonical/remove_indirect_imports/remove_indirect_imports.py +++ b/src/codemods/canonical/remove_indirect_imports/remove_indirect_imports.py @@ -6,7 +6,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/rename_function_parameters/rename_function_parameters.py b/src/codemods/canonical/rename_function_parameters/rename_function_parameters.py index 0b3a0cdf4..b1556b513 100644 --- a/src/codemods/canonical/rename_function_parameters/rename_function_parameters.py +++ b/src/codemods/canonical/rename_function_parameters/rename_function_parameters.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/rename_local_variables/rename_local_variables.py b/src/codemods/canonical/rename_local_variables/rename_local_variables.py index 7aad342c8..dded22c85 100644 --- a/src/codemods/canonical/rename_local_variables/rename_local_variables.py +++ b/src/codemods/canonical/rename_local_variables/rename_local_variables.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/replace_prop_values/replace_prop_values.py b/src/codemods/canonical/replace_prop_values/replace_prop_values.py index 04a522542..643c6010b 100644 --- a/src/codemods/canonical/replace_prop_values/replace_prop_values.py +++ b/src/codemods/canonical/replace_prop_values/replace_prop_values.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/return_none_type_annotation/return_none_type_annotation.py b/src/codemods/canonical/return_none_type_annotation/return_none_type_annotation.py index ec9c57ea7..686d20f1d 100644 --- a/src/codemods/canonical/return_none_type_annotation/return_none_type_annotation.py +++ b/src/codemods/canonical/return_none_type_annotation/return_none_type_annotation.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/split_decorators/split_decorators.py b/src/codemods/canonical/split_decorators/split_decorators.py index 6754d117d..b1a5eba28 100644 --- a/src/codemods/canonical/split_decorators/split_decorators.py +++ b/src/codemods/canonical/split_decorators/split_decorators.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/split_file/split_file.py b/src/codemods/canonical/split_file/split_file.py index a09464d71..7f4fdd75b 100644 --- a/src/codemods/canonical/split_file/split_file.py +++ b/src/codemods/canonical/split_file/split_file.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/split_file_and_rename_symbols/split_file_and_rename_symbols.py b/src/codemods/canonical/split_file_and_rename_symbols/split_file_and_rename_symbols.py index 318cfb489..46079d70c 100644 --- a/src/codemods/canonical/split_file_and_rename_symbols/split_file_and_rename_symbols.py +++ b/src/codemods/canonical/split_file_and_rename_symbols/split_file_and_rename_symbols.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/split_large_files/split_large_files.py b/src/codemods/canonical/split_large_files/split_large_files.py index 0758359b8..31f12522b 100644 --- a/src/codemods/canonical/split_large_files/split_large_files.py +++ b/src/codemods/canonical/split_large_files/split_large_files.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/swap_call_site_imports/swap_call_site_imports.py b/src/codemods/canonical/swap_call_site_imports/swap_call_site_imports.py index 2b1a7335f..5b84baae8 100644 --- a/src/codemods/canonical/swap_call_site_imports/swap_call_site_imports.py +++ b/src/codemods/canonical/swap_call_site_imports/swap_call_site_imports.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/swap_class_attribute_usages/swap_class_attribute_usages.py b/src/codemods/canonical/swap_class_attribute_usages/swap_class_attribute_usages.py index ed772cb26..b97238818 100644 --- a/src/codemods/canonical/swap_class_attribute_usages/swap_class_attribute_usages.py +++ b/src/codemods/canonical/swap_class_attribute_usages/swap_class_attribute_usages.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/update_optional_type_annotations/update_optional_type_annotations.py b/src/codemods/canonical/update_optional_type_annotations/update_optional_type_annotations.py index 660c0a518..1a3075666 100644 --- a/src/codemods/canonical/update_optional_type_annotations/update_optional_type_annotations.py +++ b/src/codemods/canonical/update_optional_type_annotations/update_optional_type_annotations.py @@ -6,7 +6,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/update_union_types/update_union_types.py b/src/codemods/canonical/update_union_types/update_union_types.py index 501a4920f..7c14d4960 100644 --- a/src/codemods/canonical/update_union_types/update_union_types.py +++ b/src/codemods/canonical/update_union_types/update_union_types.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/use_named_kwargs/use_named_kwargs.py b/src/codemods/canonical/use_named_kwargs/use_named_kwargs.py index 994ef310f..3b88f59c1 100644 --- a/src/codemods/canonical/use_named_kwargs/use_named_kwargs.py +++ b/src/codemods/canonical/use_named_kwargs/use_named_kwargs.py @@ -5,7 +5,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/wrap_with_component/wrap_with_component.py b/src/codemods/canonical/wrap_with_component/wrap_with_component.py index 6d2522553..3df0f60c3 100644 --- a/src/codemods/canonical/wrap_with_component/wrap_with_component.py +++ b/src/codemods/canonical/wrap_with_component/wrap_with_component.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/wrap_with_statement/wrap_with_statement.py b/src/codemods/canonical/wrap_with_statement/wrap_with_statement.py index 48c006675..5f29a55e5 100644 --- a/src/codemods/canonical/wrap_with_statement/wrap_with_statement.py +++ b/src/codemods/canonical/wrap_with_statement/wrap_with_statement.py @@ -3,7 +3,7 @@ from codegen.sdk.skills.core.skill import Skill from codegen.sdk.skills.core.utils import skill, skill_impl from codegen.sdk.writer_decorators import canonical -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod @skill( diff --git a/src/codemods/canonical/codemod.py b/src/codemods/codemod.py similarity index 100% rename from src/codemods/canonical/codemod.py rename to src/codemods/codemod.py diff --git a/tests/codemod/conftest.py b/tests/codemod/conftest.py index c299d019c..15117f5a5 100644 --- a/tests/codemod/conftest.py +++ b/tests/codemod/conftest.py @@ -16,7 +16,7 @@ from codegen.sdk.testing.constants import DIFF_FILEPATH from codegen.sdk.testing.models import BASE_PATH, BASE_TMP_DIR, VERIFIED_CODEMOD_DIFFS, CodemodMetadata, Repo, Size from codegen.sdk.testing.test_discovery import find_codemod_test_cases, find_repos, find_verified_codemod_cases -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod from tests.shared.recursion import set_recursion_limit logger = logging.getLogger(__name__) diff --git a/tests/codemod/test_codemods.py b/tests/codemod/test_codemods.py index a4bd7eeac..681803af1 100644 --- a/tests/codemod/test_codemods.py +++ b/tests/codemod/test_codemods.py @@ -6,7 +6,7 @@ from codegen.sdk.core.codebase import Codebase from codegen.sdk.testing.models import BASE_PATH -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod from tests.shared.codebase_comparison_utils import compare_codebase_diff DIFF_ROOT = BASE_PATH / ".diffs" diff --git a/tests/codemod/test_verified_codemods.py b/tests/codemod/test_verified_codemods.py index 704c2a510..4331a1461 100644 --- a/tests/codemod/test_verified_codemods.py +++ b/tests/codemod/test_verified_codemods.py @@ -7,7 +7,7 @@ from codegen.sdk.core.codebase import Codebase from codegen.sdk.testing.models import BASE_PATH -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod from tests.shared.codebase_comparison_utils import compare_codebase_diff from tests.shared.recursion import set_recursion_limit diff --git a/tests/git/clients/test_git_repo_client.py b/tests/unit/codegen/git/clients/test_git_repo_client.py similarity index 100% rename from tests/git/clients/test_git_repo_client.py rename to tests/unit/codegen/git/clients/test_git_repo_client.py diff --git a/tests/git/clients/test_github_client_factory.py b/tests/unit/codegen/git/clients/test_github_client_factory.py similarity index 100% rename from tests/git/clients/test_github_client_factory.py rename to tests/unit/codegen/git/clients/test_github_client_factory.py diff --git a/tests/git/conftest.py b/tests/unit/codegen/git/conftest.py similarity index 100% rename from tests/git/conftest.py rename to tests/unit/codegen/git/conftest.py diff --git a/tests/git/repo_operator/test_remote_repo_operator.py b/tests/unit/codegen/git/repo_operator/test_remote_repo_operator.py similarity index 100% rename from tests/git/repo_operator/test_remote_repo_operator.py rename to tests/unit/codegen/git/repo_operator/test_remote_repo_operator.py diff --git a/tests/git/schemas/test_github.py b/tests/unit/codegen/git/schemas/test_github.py similarity index 100% rename from tests/git/schemas/test_github.py rename to tests/unit/codegen/git/schemas/test_github.py diff --git a/tests/unit/test_cli.py b/tests/unit/codegen/gscli/test_cli.py similarity index 100% rename from tests/unit/test_cli.py rename to tests/unit/codegen/gscli/test_cli.py diff --git a/tests/unit/__init__.py b/tests/unit/codegen/sdk/code_generation/__init__.py similarity index 100% rename from tests/unit/__init__.py rename to tests/unit/codegen/sdk/code_generation/__init__.py diff --git a/tests/unit/api_doc_generation/test_api_doc_generation.py b/tests/unit/codegen/sdk/code_generation/test_api_doc_generation.py similarity index 100% rename from tests/unit/api_doc_generation/test_api_doc_generation.py rename to tests/unit/codegen/sdk/code_generation/test_api_doc_generation.py diff --git a/tests/unit/api_doc_generation/test_codemod_writer_decorators.py b/tests/unit/codegen/sdk/code_generation/test_codemod_writer_decorators.py similarity index 100% rename from tests/unit/api_doc_generation/test_codemod_writer_decorators.py rename to tests/unit/codegen/sdk/code_generation/test_codemod_writer_decorators.py diff --git a/tests/unit/api_doc_generation/__init__.py b/tests/unit/codegen/sdk/codebase/__init__.py similarity index 100% rename from tests/unit/api_doc_generation/__init__.py rename to tests/unit/codegen/sdk/codebase/__init__.py diff --git a/tests/unit/codebase/code_flag/test_code_flag.py b/tests/unit/codegen/sdk/codebase/code_flag/test_code_flag.py similarity index 100% rename from tests/unit/codebase/code_flag/test_code_flag.py rename to tests/unit/codegen/sdk/codebase/code_flag/test_code_flag.py diff --git a/tests/unit/codebase/codebase_graph/test_codebase_graph.py b/tests/unit/codegen/sdk/codebase/codebase_graph/test_codebase_graph.py similarity index 100% rename from tests/unit/codebase/codebase_graph/test_codebase_graph.py rename to tests/unit/codegen/sdk/codebase/codebase_graph/test_codebase_graph.py diff --git a/tests/unit/codebase/codebase_graph/test_validation.py b/tests/unit/codegen/sdk/codebase/codebase_graph/test_validation.py similarity index 100% rename from tests/unit/codebase/codebase_graph/test_validation.py rename to tests/unit/codegen/sdk/codebase/codebase_graph/test_validation.py diff --git a/tests/unit/codebase/file/test_file.py b/tests/unit/codegen/sdk/codebase/file/test_file.py similarity index 100% rename from tests/unit/codebase/file/test_file.py rename to tests/unit/codegen/sdk/codebase/file/test_file.py diff --git a/tests/unit/codebase/file/test_get_relative_path.py b/tests/unit/codegen/sdk/codebase/file/test_get_relative_path.py similarity index 100% rename from tests/unit/codebase/file/test_get_relative_path.py rename to tests/unit/codegen/sdk/codebase/file/test_get_relative_path.py diff --git a/tests/unit/codebase/file_graph/test_symbol_parent_statement.py b/tests/unit/codegen/sdk/codebase/file_graph/test_symbol_parent_statement.py similarity index 100% rename from tests/unit/codebase/file_graph/test_symbol_parent_statement.py rename to tests/unit/codegen/sdk/codebase/file_graph/test_symbol_parent_statement.py diff --git a/tests/unit/codebase/transaction_manager/test_transaction_manager.py b/tests/unit/codegen/sdk/codebase/transaction_manager/test_transaction_manager.py similarity index 100% rename from tests/unit/codebase/transaction_manager/test_transaction_manager.py rename to tests/unit/codegen/sdk/codebase/transaction_manager/test_transaction_manager.py diff --git a/tests/unit/codebase/transaction_manager/test_transaction_mangager_checks.py b/tests/unit/codegen/sdk/codebase/transaction_manager/test_transaction_mangager_checks.py similarity index 100% rename from tests/unit/codebase/transaction_manager/test_transaction_mangager_checks.py rename to tests/unit/codegen/sdk/codebase/transaction_manager/test_transaction_mangager_checks.py diff --git a/tests/unit/codegen/sdk/output/snapshots/test_ast/test_ast_basic/ast.json b/tests/unit/codegen/sdk/output/snapshots/test_ast/test_ast_basic/ast.json new file mode 100644 index 000000000..27e102535 --- /dev/null +++ b/tests/unit/codegen/sdk/output/snapshots/test_ast/test_ast_basic/ast.json @@ -0,0 +1,327 @@ +{ + "codegen_sdk_type": "PyClass", + "span": { + "range": { + "start_byte": 1, + "end_byte": 48, + "start_point": { + "row": 1, + "column": 0 + }, + "end_point": { + "row": 3, + "column": 18 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "class_definition", + "children": [ + [ + "get_name()", + { + "codegen_sdk_type": "Name", + "span": { + "range": { + "start_byte": 7, + "end_byte": 10, + "start_point": { + "row": 1, + "column": 6 + }, + "end_point": { + "row": 1, + "column": 9 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "identifier", + "children": [] + } + ], + [ + "methods", + { + "codegen_sdk_type": "PyCodeBlock", + "span": { + "range": { + "start_byte": 16, + "end_byte": 48, + "start_point": { + "row": 2, + "column": 4 + }, + "end_point": { + "row": 3, + "column": 18 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "block", + "children": [ + [ + "statements", + { + "codegen_sdk_type": "MultiLineCollection", + "span": { + "range": { + "start_byte": 16, + "end_byte": 48, + "start_point": { + "row": 2, + "column": 4 + }, + "end_point": { + "row": 3, + "column": 18 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "block", + "children": [ + [ + null, + { + "codegen_sdk_type": "SymbolStatement", + "span": { + "range": { + "start_byte": 16, + "end_byte": 48, + "start_point": { + "row": 2, + "column": 4 + }, + "end_point": { + "row": 3, + "column": 18 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "function_definition", + "children": [ + [ + null, + { + "codegen_sdk_type": "Name", + "span": { + "range": { + "start_byte": 20, + "end_byte": 23, + "start_point": { + "row": 2, + "column": 8 + }, + "end_point": { + "row": 2, + "column": 11 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "identifier", + "children": [] + } + ], + [ + null, + { + "codegen_sdk_type": "Collection", + "span": { + "range": { + "start_byte": 23, + "end_byte": 28, + "start_point": { + "row": 2, + "column": 11 + }, + "end_point": { + "row": 2, + "column": 16 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "parameters", + "children": [ + [ + null, + { + "codegen_sdk_type": "PyParameter", + "span": { + "range": { + "start_byte": 24, + "end_byte": 27, + "start_point": { + "row": 2, + "column": 12 + }, + "end_point": { + "row": 2, + "column": 15 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "identifier", + "children": [] + } + ] + ] + } + ], + [ + null, + { + "codegen_sdk_type": "PyCodeBlock", + "span": { + "range": { + "start_byte": 38, + "end_byte": 48, + "start_point": { + "row": 3, + "column": 8 + }, + "end_point": { + "row": 3, + "column": 18 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "block", + "children": [ + [ + "statements", + { + "codegen_sdk_type": "MultiLineCollection", + "span": { + "range": { + "start_byte": 38, + "end_byte": 48, + "start_point": { + "row": 3, + "column": 8 + }, + "end_point": { + "row": 3, + "column": 18 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "block", + "children": [ + [ + null, + { + "codegen_sdk_type": "ReturnStatement", + "span": { + "range": { + "start_byte": 38, + "end_byte": 48, + "start_point": { + "row": 3, + "column": 8 + }, + "end_point": { + "row": 3, + "column": 18 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "return_statement", + "children": [ + [ + "value", + { + "codegen_sdk_type": "Name", + "span": { + "range": { + "start_byte": 45, + "end_byte": 48, + "start_point": { + "row": 3, + "column": 15 + }, + "end_point": { + "row": 3, + "column": 18 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "identifier", + "children": [] + } + ] + ] + } + ] + ] + } + ] + ] + } + ] + ] + } + ] + ] + } + ] + ] + } + ], + [ + null, + { + "codegen_sdk_type": "Name", + "span": { + "range": { + "start_byte": 20, + "end_byte": 23, + "start_point": { + "row": 2, + "column": 8 + }, + "end_point": { + "row": 2, + "column": 11 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "identifier", + "children": [] + } + ], + [ + null, + { + "codegen_sdk_type": "Name", + "span": { + "range": { + "start_byte": 24, + "end_byte": 27, + "start_point": { + "row": 2, + "column": 12 + }, + "end_point": { + "row": 2, + "column": 15 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "identifier", + "children": [] + } + ] + ] +} diff --git a/tests/unit/codegen/sdk/output/snapshots/test_ast/test_ast_nested/ast-nested.json b/tests/unit/codegen/sdk/output/snapshots/test_ast/test_ast_nested/ast-nested.json new file mode 100644 index 000000000..276f5605f --- /dev/null +++ b/tests/unit/codegen/sdk/output/snapshots/test_ast/test_ast_nested/ast-nested.json @@ -0,0 +1,421 @@ +{ + "codegen_sdk_type": "PyClass", + "span": { + "range": { + "start_byte": 1, + "end_byte": 66, + "start_point": { + "row": 1, + "column": 0 + }, + "end_point": { + "row": 4, + "column": 16 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "class_definition", + "children": [ + [ + "get_name()", + { + "codegen_sdk_type": "Name", + "span": { + "range": { + "start_byte": 7, + "end_byte": 10, + "start_point": { + "row": 1, + "column": 6 + }, + "end_point": { + "row": 1, + "column": 9 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "identifier", + "children": [] + } + ], + [ + "methods", + { + "codegen_sdk_type": "PyCodeBlock", + "span": { + "range": { + "start_byte": 16, + "end_byte": 66, + "start_point": { + "row": 2, + "column": 4 + }, + "end_point": { + "row": 4, + "column": 16 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "block", + "children": [ + [ + "statements", + { + "codegen_sdk_type": "MultiLineCollection", + "span": { + "range": { + "start_byte": 16, + "end_byte": 66, + "start_point": { + "row": 2, + "column": 4 + }, + "end_point": { + "row": 4, + "column": 16 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "block", + "children": [ + [ + null, + { + "codegen_sdk_type": "SymbolStatement", + "span": { + "range": { + "start_byte": 16, + "end_byte": 66, + "start_point": { + "row": 2, + "column": 4 + }, + "end_point": { + "row": 4, + "column": 16 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "class_definition", + "children": [ + [ + null, + { + "codegen_sdk_type": "Name", + "span": { + "range": { + "start_byte": 22, + "end_byte": 25, + "start_point": { + "row": 2, + "column": 10 + }, + "end_point": { + "row": 2, + "column": 13 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "identifier", + "children": [] + } + ], + [ + null, + { + "codegen_sdk_type": "PyCodeBlock", + "span": { + "range": { + "start_byte": 35, + "end_byte": 66, + "start_point": { + "row": 3, + "column": 8 + }, + "end_point": { + "row": 4, + "column": 16 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "block", + "children": [ + [ + "statements", + { + "codegen_sdk_type": "MultiLineCollection", + "span": { + "range": { + "start_byte": 35, + "end_byte": 66, + "start_point": { + "row": 3, + "column": 8 + }, + "end_point": { + "row": 4, + "column": 16 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "block", + "children": [ + [ + null, + { + "codegen_sdk_type": "SymbolStatement", + "span": { + "range": { + "start_byte": 35, + "end_byte": 66, + "start_point": { + "row": 3, + "column": 8 + }, + "end_point": { + "row": 4, + "column": 16 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "function_definition", + "children": [ + [ + null, + { + "codegen_sdk_type": "Name", + "span": { + "range": { + "start_byte": 39, + "end_byte": 42, + "start_point": { + "row": 3, + "column": 12 + }, + "end_point": { + "row": 3, + "column": 15 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "identifier", + "children": [] + } + ], + [ + null, + { + "codegen_sdk_type": "Collection", + "span": { + "range": { + "start_byte": 42, + "end_byte": 48, + "start_point": { + "row": 3, + "column": 15 + }, + "end_point": { + "row": 3, + "column": 21 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "parameters", + "children": [ + [ + null, + { + "codegen_sdk_type": "PyParameter", + "span": { + "range": { + "start_byte": 43, + "end_byte": 47, + "start_point": { + "row": 3, + "column": 16 + }, + "end_point": { + "row": 3, + "column": 20 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "identifier", + "children": [] + } + ] + ] + } + ], + [ + null, + { + "codegen_sdk_type": "PyCodeBlock", + "span": { + "range": { + "start_byte": 62, + "end_byte": 66, + "start_point": { + "row": 4, + "column": 12 + }, + "end_point": { + "row": 4, + "column": 16 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "block", + "children": [ + [ + "statements", + { + "codegen_sdk_type": "MultiLineCollection", + "span": { + "range": { + "start_byte": 62, + "end_byte": 66, + "start_point": { + "row": 4, + "column": 12 + }, + "end_point": { + "row": 4, + "column": 16 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "block", + "children": [ + [ + null, + { + "codegen_sdk_type": "PyPassStatement", + "span": { + "range": { + "start_byte": 62, + "end_byte": 66, + "start_point": { + "row": 4, + "column": 12 + }, + "end_point": { + "row": 4, + "column": 16 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "pass_statement", + "children": [] + } + ] + ] + } + ] + ] + } + ] + ] + } + ] + ] + } + ] + ] + } + ] + ] + } + ] + ] + } + ] + ] + } + ], + [ + null, + { + "codegen_sdk_type": "Name", + "span": { + "range": { + "start_byte": 22, + "end_byte": 25, + "start_point": { + "row": 2, + "column": 10 + }, + "end_point": { + "row": 2, + "column": 13 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "identifier", + "children": [] + } + ], + [ + null, + { + "codegen_sdk_type": "Name", + "span": { + "range": { + "start_byte": 39, + "end_byte": 42, + "start_point": { + "row": 3, + "column": 12 + }, + "end_point": { + "row": 3, + "column": 15 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "identifier", + "children": [] + } + ], + [ + null, + { + "codegen_sdk_type": "Name", + "span": { + "range": { + "start_byte": 43, + "end_byte": 47, + "start_point": { + "row": 3, + "column": 16 + }, + "end_point": { + "row": 3, + "column": 20 + } + }, + "filepath": "test.py" + }, + "tree_sitter_type": "identifier", + "children": [] + } + ] + ] +} diff --git a/tests/unit/output/test_ast.py b/tests/unit/codegen/sdk/output/test_ast.py similarity index 100% rename from tests/unit/output/test_ast.py rename to tests/unit/codegen/sdk/output/test_ast.py diff --git a/tests/unit/output/test_json.py b/tests/unit/codegen/sdk/output/test_json.py similarity index 100% rename from tests/unit/output/test_json.py rename to tests/unit/codegen/sdk/output/test_json.py diff --git a/tests/unit/codebase/__init__.py b/tests/unit/codegen/sdk/parser/__init__.py similarity index 100% rename from tests/unit/codebase/__init__.py rename to tests/unit/codegen/sdk/parser/__init__.py diff --git a/tests/unit/parser/test_get_parser_by_filepath_or_extension.py b/tests/unit/codegen/sdk/parser/test_get_parser_by_filepath_or_extension.py similarity index 100% rename from tests/unit/parser/test_get_parser_by_filepath_or_extension.py rename to tests/unit/codegen/sdk/parser/test_get_parser_by_filepath_or_extension.py diff --git a/tests/unit/parser/__init__.py b/tests/unit/codegen/sdk/python/__init__.py similarity index 100% rename from tests/unit/parser/__init__.py rename to tests/unit/codegen/sdk/python/__init__.py diff --git a/tests/unit/python/autocommit/test_autocommit.py b/tests/unit/codegen/sdk/python/autocommit/test_autocommit.py similarity index 100% rename from tests/unit/python/autocommit/test_autocommit.py rename to tests/unit/codegen/sdk/python/autocommit/test_autocommit.py diff --git a/tests/unit/python/__init__.py b/tests/unit/codegen/sdk/python/class_definition/__init__.py similarity index 100% rename from tests/unit/python/__init__.py rename to tests/unit/codegen/sdk/python/class_definition/__init__.py diff --git a/tests/unit/python/class_definition/test_class_add_attribute.py b/tests/unit/codegen/sdk/python/class_definition/test_class_add_attribute.py similarity index 100% rename from tests/unit/python/class_definition/test_class_add_attribute.py rename to tests/unit/codegen/sdk/python/class_definition/test_class_add_attribute.py diff --git a/tests/unit/python/class_definition/test_class_add_comment.py b/tests/unit/codegen/sdk/python/class_definition/test_class_add_comment.py similarity index 100% rename from tests/unit/python/class_definition/test_class_add_comment.py rename to tests/unit/codegen/sdk/python/class_definition/test_class_add_comment.py diff --git a/tests/unit/python/class_definition/test_class_add_decorator.py b/tests/unit/codegen/sdk/python/class_definition/test_class_add_decorator.py similarity index 100% rename from tests/unit/python/class_definition/test_class_add_decorator.py rename to tests/unit/codegen/sdk/python/class_definition/test_class_add_decorator.py diff --git a/tests/unit/python/class_definition/test_class_add_method.py b/tests/unit/codegen/sdk/python/class_definition/test_class_add_method.py similarity index 100% rename from tests/unit/python/class_definition/test_class_add_method.py rename to tests/unit/codegen/sdk/python/class_definition/test_class_add_method.py diff --git a/tests/unit/python/class_definition/test_class_constructor_usages.py b/tests/unit/codegen/sdk/python/class_definition/test_class_constructor_usages.py similarity index 100% rename from tests/unit/python/class_definition/test_class_constructor_usages.py rename to tests/unit/codegen/sdk/python/class_definition/test_class_constructor_usages.py diff --git a/tests/unit/python/class_definition/test_class_dependencies.py b/tests/unit/codegen/sdk/python/class_definition/test_class_dependencies.py similarity index 100% rename from tests/unit/python/class_definition/test_class_dependencies.py rename to tests/unit/codegen/sdk/python/class_definition/test_class_dependencies.py diff --git a/tests/unit/python/class_definition/test_class_editable.py b/tests/unit/codegen/sdk/python/class_definition/test_class_editable.py similarity index 100% rename from tests/unit/python/class_definition/test_class_editable.py rename to tests/unit/codegen/sdk/python/class_definition/test_class_editable.py diff --git a/tests/unit/python/class_definition/test_class_extended.py b/tests/unit/codegen/sdk/python/class_definition/test_class_extended.py similarity index 100% rename from tests/unit/python/class_definition/test_class_extended.py rename to tests/unit/codegen/sdk/python/class_definition/test_class_extended.py diff --git a/tests/unit/python/class_definition/test_class_filter.py b/tests/unit/codegen/sdk/python/class_definition/test_class_filter.py similarity index 100% rename from tests/unit/python/class_definition/test_class_filter.py rename to tests/unit/codegen/sdk/python/class_definition/test_class_filter.py diff --git a/tests/unit/python/class_definition/test_class_inherited_methods.py b/tests/unit/codegen/sdk/python/class_definition/test_class_inherited_methods.py similarity index 100% rename from tests/unit/python/class_definition/test_class_inherited_methods.py rename to tests/unit/codegen/sdk/python/class_definition/test_class_inherited_methods.py diff --git a/tests/unit/python/class_definition/test_class_method_usages.py b/tests/unit/codegen/sdk/python/class_definition/test_class_method_usages.py similarity index 100% rename from tests/unit/python/class_definition/test_class_method_usages.py rename to tests/unit/codegen/sdk/python/class_definition/test_class_method_usages.py diff --git a/tests/unit/python/class_definition/test_class_parent_class_names.py b/tests/unit/codegen/sdk/python/class_definition/test_class_parent_class_names.py similarity index 100% rename from tests/unit/python/class_definition/test_class_parent_class_names.py rename to tests/unit/codegen/sdk/python/class_definition/test_class_parent_class_names.py diff --git a/tests/unit/python/class_definition/test_class_parent_classes.py b/tests/unit/codegen/sdk/python/class_definition/test_class_parent_classes.py similarity index 100% rename from tests/unit/python/class_definition/test_class_parent_classes.py rename to tests/unit/codegen/sdk/python/class_definition/test_class_parent_classes.py diff --git a/tests/unit/python/class_definition/test_class_properties.py b/tests/unit/codegen/sdk/python/class_definition/test_class_properties.py similarity index 100% rename from tests/unit/python/class_definition/test_class_properties.py rename to tests/unit/codegen/sdk/python/class_definition/test_class_properties.py diff --git a/tests/unit/python/class_definition/test_class_rename.py b/tests/unit/codegen/sdk/python/class_definition/test_class_rename.py similarity index 100% rename from tests/unit/python/class_definition/test_class_rename.py rename to tests/unit/codegen/sdk/python/class_definition/test_class_rename.py diff --git a/tests/unit/python/class_definition/__init__.py b/tests/unit/codegen/sdk/python/codebase/__init__.py similarity index 100% rename from tests/unit/python/class_definition/__init__.py rename to tests/unit/codegen/sdk/python/codebase/__init__.py diff --git a/tests/unit/python/codebase/test_codebase.py b/tests/unit/codegen/sdk/python/codebase/test_codebase.py similarity index 100% rename from tests/unit/python/codebase/test_codebase.py rename to tests/unit/codegen/sdk/python/codebase/test_codebase.py diff --git a/tests/unit/python/codebase/test_codebase_auto_commit.py b/tests/unit/codegen/sdk/python/codebase/test_codebase_auto_commit.py similarity index 100% rename from tests/unit/python/codebase/test_codebase_auto_commit.py rename to tests/unit/codegen/sdk/python/codebase/test_codebase_auto_commit.py diff --git a/tests/unit/python/codebase/test_codebase_create_file.py b/tests/unit/codegen/sdk/python/codebase/test_codebase_create_file.py similarity index 96% rename from tests/unit/python/codebase/test_codebase_create_file.py rename to tests/unit/codegen/sdk/python/codebase/test_codebase_create_file.py index 2f3d03f07..e0aed56e7 100644 --- a/tests/unit/python/codebase/test_codebase_create_file.py +++ b/tests/unit/codegen/sdk/python/codebase/test_codebase_create_file.py @@ -5,7 +5,7 @@ from codegen.sdk.codebase.factory.get_session import get_codebase_session from codegen.sdk.core.codebase import Codebase from codegen.sdk.core.file import File -from tests.unit.python.utils.test_file_contents import file1_content, file2_content +from tests.unit.codegen.sdk.python.utils.test_file_contents import file1_content, file2_content @pytest.fixture(scope="function") diff --git a/tests/unit/python/codebase/test_codebase_git.py b/tests/unit/codegen/sdk/python/codebase/test_codebase_git.py similarity index 100% rename from tests/unit/python/codebase/test_codebase_git.py rename to tests/unit/codegen/sdk/python/codebase/test_codebase_git.py diff --git a/tests/unit/python/codebase/test_codebase_log.py b/tests/unit/codegen/sdk/python/codebase/test_codebase_log.py similarity index 100% rename from tests/unit/python/codebase/test_codebase_log.py rename to tests/unit/codegen/sdk/python/codebase/test_codebase_log.py diff --git a/tests/unit/python/codebase/test_codebase_meta.py b/tests/unit/codegen/sdk/python/codebase/test_codebase_meta.py similarity index 100% rename from tests/unit/python/codebase/test_codebase_meta.py rename to tests/unit/codegen/sdk/python/codebase/test_codebase_meta.py diff --git a/tests/unit/python/codebase/test_codebase_reset.py b/tests/unit/codegen/sdk/python/codebase/test_codebase_reset.py similarity index 100% rename from tests/unit/python/codebase/test_codebase_reset.py rename to tests/unit/codegen/sdk/python/codebase/test_codebase_reset.py diff --git a/tests/unit/python/codebase/test_codebase_resolution.py b/tests/unit/codegen/sdk/python/codebase/test_codebase_resolution.py similarity index 100% rename from tests/unit/python/codebase/test_codebase_resolution.py rename to tests/unit/codegen/sdk/python/codebase/test_codebase_resolution.py diff --git a/tests/unit/python/codebase/test_control_flow.py b/tests/unit/codegen/sdk/python/codebase/test_control_flow.py similarity index 100% rename from tests/unit/python/codebase/test_control_flow.py rename to tests/unit/codegen/sdk/python/codebase/test_control_flow.py diff --git a/tests/unit/python/comment_docstring/test_comment.py b/tests/unit/codegen/sdk/python/comment_docstring/test_comment.py similarity index 100% rename from tests/unit/python/comment_docstring/test_comment.py rename to tests/unit/codegen/sdk/python/comment_docstring/test_comment.py diff --git a/tests/unit/python/comment_docstring/test_comment_edit.py b/tests/unit/codegen/sdk/python/comment_docstring/test_comment_edit.py similarity index 100% rename from tests/unit/python/comment_docstring/test_comment_edit.py rename to tests/unit/codegen/sdk/python/comment_docstring/test_comment_edit.py diff --git a/tests/unit/python/comment_docstring/test_comment_insert_add.py b/tests/unit/codegen/sdk/python/comment_docstring/test_comment_insert_add.py similarity index 100% rename from tests/unit/python/comment_docstring/test_comment_insert_add.py rename to tests/unit/codegen/sdk/python/comment_docstring/test_comment_insert_add.py diff --git a/tests/unit/python/comment_docstring/test_docstring.py b/tests/unit/codegen/sdk/python/comment_docstring/test_docstring.py similarity index 100% rename from tests/unit/python/comment_docstring/test_docstring.py rename to tests/unit/codegen/sdk/python/comment_docstring/test_docstring.py diff --git a/tests/unit/python/comment_docstring/test_docstring_edit.py b/tests/unit/codegen/sdk/python/comment_docstring/test_docstring_edit.py similarity index 100% rename from tests/unit/python/comment_docstring/test_docstring_edit.py rename to tests/unit/codegen/sdk/python/comment_docstring/test_docstring_edit.py diff --git a/tests/unit/python/comment_docstring/test_docstring_insert_add.py b/tests/unit/codegen/sdk/python/comment_docstring/test_docstring_insert_add.py similarity index 100% rename from tests/unit/python/comment_docstring/test_docstring_insert_add.py rename to tests/unit/codegen/sdk/python/comment_docstring/test_docstring_insert_add.py diff --git a/tests/unit/python/comment_docstring/test_inline_comment.py b/tests/unit/codegen/sdk/python/comment_docstring/test_inline_comment.py similarity index 100% rename from tests/unit/python/comment_docstring/test_inline_comment.py rename to tests/unit/codegen/sdk/python/comment_docstring/test_inline_comment.py diff --git a/tests/unit/python/comment_docstring/test_inline_comment_edit.py b/tests/unit/codegen/sdk/python/comment_docstring/test_inline_comment_edit.py similarity index 100% rename from tests/unit/python/comment_docstring/test_inline_comment_edit.py rename to tests/unit/codegen/sdk/python/comment_docstring/test_inline_comment_edit.py diff --git a/tests/unit/python/comment_docstring/test_inline_comment_insert_add.py b/tests/unit/codegen/sdk/python/comment_docstring/test_inline_comment_insert_add.py similarity index 100% rename from tests/unit/python/comment_docstring/test_inline_comment_insert_add.py rename to tests/unit/codegen/sdk/python/comment_docstring/test_inline_comment_insert_add.py diff --git a/tests/unit/python/codebase/__init__.py b/tests/unit/codegen/sdk/python/detached_symbols/__init__.py similarity index 100% rename from tests/unit/python/codebase/__init__.py rename to tests/unit/codegen/sdk/python/detached_symbols/__init__.py diff --git a/tests/unit/python/detached_symbols/__init__.py b/tests/unit/codegen/sdk/python/detached_symbols/argument/__init__.py similarity index 100% rename from tests/unit/python/detached_symbols/__init__.py rename to tests/unit/codegen/sdk/python/detached_symbols/argument/__init__.py diff --git a/tests/unit/python/detached_symbols/argument/test_argument_edit.py b/tests/unit/codegen/sdk/python/detached_symbols/argument/test_argument_edit.py similarity index 100% rename from tests/unit/python/detached_symbols/argument/test_argument_edit.py rename to tests/unit/codegen/sdk/python/detached_symbols/argument/test_argument_edit.py diff --git a/tests/unit/python/detached_symbols/argument/test_argument_remove.py b/tests/unit/codegen/sdk/python/detached_symbols/argument/test_argument_remove.py similarity index 100% rename from tests/unit/python/detached_symbols/argument/test_argument_remove.py rename to tests/unit/codegen/sdk/python/detached_symbols/argument/test_argument_remove.py diff --git a/tests/unit/python/detached_symbols/argument/__init__.py b/tests/unit/codegen/sdk/python/detached_symbols/code_block/__init__.py similarity index 100% rename from tests/unit/python/detached_symbols/argument/__init__.py rename to tests/unit/codegen/sdk/python/detached_symbols/code_block/__init__.py diff --git a/tests/unit/python/detached_symbols/code_block/test_code_block.py b/tests/unit/codegen/sdk/python/detached_symbols/code_block/test_code_block.py similarity index 100% rename from tests/unit/python/detached_symbols/code_block/test_code_block.py rename to tests/unit/codegen/sdk/python/detached_symbols/code_block/test_code_block.py diff --git a/tests/unit/python/detached_symbols/code_block/test_code_block_indent.py b/tests/unit/codegen/sdk/python/detached_symbols/code_block/test_code_block_indent.py similarity index 100% rename from tests/unit/python/detached_symbols/code_block/test_code_block_indent.py rename to tests/unit/codegen/sdk/python/detached_symbols/code_block/test_code_block_indent.py diff --git a/tests/unit/python/detached_symbols/code_block/test_code_block_insert.py b/tests/unit/codegen/sdk/python/detached_symbols/code_block/test_code_block_insert.py similarity index 100% rename from tests/unit/python/detached_symbols/code_block/test_code_block_insert.py rename to tests/unit/codegen/sdk/python/detached_symbols/code_block/test_code_block_insert.py diff --git a/tests/unit/python/detached_symbols/code_block/test_code_block_remove.py b/tests/unit/codegen/sdk/python/detached_symbols/code_block/test_code_block_remove.py similarity index 100% rename from tests/unit/python/detached_symbols/code_block/test_code_block_remove.py rename to tests/unit/codegen/sdk/python/detached_symbols/code_block/test_code_block_remove.py diff --git a/tests/unit/python/detached_symbols/code_block/test_code_block_unwrap.py b/tests/unit/codegen/sdk/python/detached_symbols/code_block/test_code_block_unwrap.py similarity index 100% rename from tests/unit/python/detached_symbols/code_block/test_code_block_unwrap.py rename to tests/unit/codegen/sdk/python/detached_symbols/code_block/test_code_block_unwrap.py diff --git a/tests/unit/python/detached_symbols/code_block/test_code_block_wrap.py b/tests/unit/codegen/sdk/python/detached_symbols/code_block/test_code_block_wrap.py similarity index 100% rename from tests/unit/python/detached_symbols/code_block/test_code_block_wrap.py rename to tests/unit/codegen/sdk/python/detached_symbols/code_block/test_code_block_wrap.py diff --git a/tests/unit/python/detached_symbols/code_block/__init__.py b/tests/unit/codegen/sdk/python/detached_symbols/decorator/__init__.py similarity index 100% rename from tests/unit/python/detached_symbols/code_block/__init__.py rename to tests/unit/codegen/sdk/python/detached_symbols/decorator/__init__.py diff --git a/tests/unit/python/detached_symbols/decorator/test_decorator_call.py b/tests/unit/codegen/sdk/python/detached_symbols/decorator/test_decorator_call.py similarity index 100% rename from tests/unit/python/detached_symbols/decorator/test_decorator_call.py rename to tests/unit/codegen/sdk/python/detached_symbols/decorator/test_decorator_call.py diff --git a/tests/unit/python/detached_symbols/decorator/test_decorator_name.py b/tests/unit/codegen/sdk/python/detached_symbols/decorator/test_decorator_name.py similarity index 100% rename from tests/unit/python/detached_symbols/decorator/test_decorator_name.py rename to tests/unit/codegen/sdk/python/detached_symbols/decorator/test_decorator_name.py diff --git a/tests/unit/python/detached_symbols/decorator/test_decorator_remove.py b/tests/unit/codegen/sdk/python/detached_symbols/decorator/test_decorator_remove.py similarity index 100% rename from tests/unit/python/detached_symbols/decorator/test_decorator_remove.py rename to tests/unit/codegen/sdk/python/detached_symbols/decorator/test_decorator_remove.py diff --git a/tests/unit/python/detached_symbols/decorator/test_insert_argument.py b/tests/unit/codegen/sdk/python/detached_symbols/decorator/test_insert_argument.py similarity index 100% rename from tests/unit/python/detached_symbols/decorator/test_insert_argument.py rename to tests/unit/codegen/sdk/python/detached_symbols/decorator/test_insert_argument.py diff --git a/tests/unit/python/detached_symbols/decorator/__init__.py b/tests/unit/codegen/sdk/python/detached_symbols/function_call/__init__.py similarity index 100% rename from tests/unit/python/detached_symbols/decorator/__init__.py rename to tests/unit/codegen/sdk/python/detached_symbols/function_call/__init__.py diff --git a/tests/unit/python/detached_symbols/function_call/test_function_call.py b/tests/unit/codegen/sdk/python/detached_symbols/function_call/test_function_call.py similarity index 100% rename from tests/unit/python/detached_symbols/function_call/test_function_call.py rename to tests/unit/codegen/sdk/python/detached_symbols/function_call/test_function_call.py diff --git a/tests/unit/python/detached_symbols/function_call/test_function_call_add_argument.py b/tests/unit/codegen/sdk/python/detached_symbols/function_call/test_function_call_add_argument.py similarity index 100% rename from tests/unit/python/detached_symbols/function_call/test_function_call_add_argument.py rename to tests/unit/codegen/sdk/python/detached_symbols/function_call/test_function_call_add_argument.py diff --git a/tests/unit/python/detached_symbols/function_call/test_function_call_from_usage.py b/tests/unit/codegen/sdk/python/detached_symbols/function_call/test_function_call_from_usage.py similarity index 100% rename from tests/unit/python/detached_symbols/function_call/test_function_call_from_usage.py rename to tests/unit/codegen/sdk/python/detached_symbols/function_call/test_function_call_from_usage.py diff --git a/tests/unit/python/detached_symbols/function_call/test_function_call_is_awaited.py b/tests/unit/codegen/sdk/python/detached_symbols/function_call/test_function_call_is_awaited.py similarity index 100% rename from tests/unit/python/detached_symbols/function_call/test_function_call_is_awaited.py rename to tests/unit/codegen/sdk/python/detached_symbols/function_call/test_function_call_is_awaited.py diff --git a/tests/unit/python/detached_symbols/function_call/test_function_calls_from_symbol.py b/tests/unit/codegen/sdk/python/detached_symbols/function_call/test_function_calls_from_symbol.py similarity index 100% rename from tests/unit/python/detached_symbols/function_call/test_function_calls_from_symbol.py rename to tests/unit/codegen/sdk/python/detached_symbols/function_call/test_function_calls_from_symbol.py diff --git a/tests/unit/python/detached_symbols/function_call/test_manipulations_function_call.py b/tests/unit/codegen/sdk/python/detached_symbols/function_call/test_manipulations_function_call.py similarity index 100% rename from tests/unit/python/detached_symbols/function_call/test_manipulations_function_call.py rename to tests/unit/codegen/sdk/python/detached_symbols/function_call/test_manipulations_function_call.py diff --git a/tests/unit/python/detached_symbols/function_call/__init__.py b/tests/unit/codegen/sdk/python/detached_symbols/parameter/__init__.py similarity index 100% rename from tests/unit/python/detached_symbols/function_call/__init__.py rename to tests/unit/codegen/sdk/python/detached_symbols/parameter/__init__.py diff --git a/tests/unit/python/detached_symbols/parameter/test_parameter_edit.py b/tests/unit/codegen/sdk/python/detached_symbols/parameter/test_parameter_edit.py similarity index 100% rename from tests/unit/python/detached_symbols/parameter/test_parameter_edit.py rename to tests/unit/codegen/sdk/python/detached_symbols/parameter/test_parameter_edit.py diff --git a/tests/unit/python/detached_symbols/parameter/test_parameter_editable.py b/tests/unit/codegen/sdk/python/detached_symbols/parameter/test_parameter_editable.py similarity index 95% rename from tests/unit/python/detached_symbols/parameter/test_parameter_editable.py rename to tests/unit/codegen/sdk/python/detached_symbols/parameter/test_parameter_editable.py index 95de8b7cc..ebb8e3ebe 100644 --- a/tests/unit/python/detached_symbols/parameter/test_parameter_editable.py +++ b/tests/unit/codegen/sdk/python/detached_symbols/parameter/test_parameter_editable.py @@ -1,7 +1,7 @@ import re from codegen.sdk.codebase.factory.get_session import get_codebase_session -from tests.unit.python.utils.test_file_contents import file1_content, file2_content +from tests.unit.codegen.sdk.python.utils.test_file_contents import file1_content, file2_content def test_function_parameter_edit(tmpdir) -> None: diff --git a/tests/unit/python/detached_symbols/parameter/test_parameter_is_optional.py b/tests/unit/codegen/sdk/python/detached_symbols/parameter/test_parameter_is_optional.py similarity index 100% rename from tests/unit/python/detached_symbols/parameter/test_parameter_is_optional.py rename to tests/unit/codegen/sdk/python/detached_symbols/parameter/test_parameter_is_optional.py diff --git a/tests/unit/python/detached_symbols/parameter/test_parameter_is_variadic.py b/tests/unit/codegen/sdk/python/detached_symbols/parameter/test_parameter_is_variadic.py similarity index 100% rename from tests/unit/python/detached_symbols/parameter/test_parameter_is_variadic.py rename to tests/unit/codegen/sdk/python/detached_symbols/parameter/test_parameter_is_variadic.py diff --git a/tests/unit/python/detached_symbols/parameter/test_parameter_properties.py b/tests/unit/codegen/sdk/python/detached_symbols/parameter/test_parameter_properties.py similarity index 100% rename from tests/unit/python/detached_symbols/parameter/test_parameter_properties.py rename to tests/unit/codegen/sdk/python/detached_symbols/parameter/test_parameter_properties.py diff --git a/tests/unit/python/detached_symbols/parameter/test_parameter_remove.py b/tests/unit/codegen/sdk/python/detached_symbols/parameter/test_parameter_remove.py similarity index 100% rename from tests/unit/python/detached_symbols/parameter/test_parameter_remove.py rename to tests/unit/codegen/sdk/python/detached_symbols/parameter/test_parameter_remove.py diff --git a/tests/unit/python/detached_symbols/parameter/test_parameter_rename.py b/tests/unit/codegen/sdk/python/detached_symbols/parameter/test_parameter_rename.py similarity index 100% rename from tests/unit/python/detached_symbols/parameter/test_parameter_rename.py rename to tests/unit/codegen/sdk/python/detached_symbols/parameter/test_parameter_rename.py diff --git a/tests/unit/python/detached_symbols/parameter/test_parameter_set_type_annotation.py b/tests/unit/codegen/sdk/python/detached_symbols/parameter/test_parameter_set_type_annotation.py similarity index 100% rename from tests/unit/python/detached_symbols/parameter/test_parameter_set_type_annotation.py rename to tests/unit/codegen/sdk/python/detached_symbols/parameter/test_parameter_set_type_annotation.py diff --git a/tests/unit/python/directory/test_directory.py b/tests/unit/codegen/sdk/python/directory/test_directory.py similarity index 100% rename from tests/unit/python/directory/test_directory.py rename to tests/unit/codegen/sdk/python/directory/test_directory.py diff --git a/tests/unit/python/directory/test_directory_move.py b/tests/unit/codegen/sdk/python/directory/test_directory_move.py similarity index 100% rename from tests/unit/python/directory/test_directory_move.py rename to tests/unit/codegen/sdk/python/directory/test_directory_move.py diff --git a/tests/unit/python/directory/test_directory_remove.py b/tests/unit/codegen/sdk/python/directory/test_directory_remove.py similarity index 100% rename from tests/unit/python/directory/test_directory_remove.py rename to tests/unit/codegen/sdk/python/directory/test_directory_remove.py diff --git a/tests/unit/python/editable/test_replace.py b/tests/unit/codegen/sdk/python/editable/test_replace.py similarity index 100% rename from tests/unit/python/editable/test_replace.py rename to tests/unit/codegen/sdk/python/editable/test_replace.py diff --git a/tests/unit/python/expressions/test_binary_expression.py b/tests/unit/codegen/sdk/python/expressions/test_binary_expression.py similarity index 100% rename from tests/unit/python/expressions/test_binary_expression.py rename to tests/unit/codegen/sdk/python/expressions/test_binary_expression.py diff --git a/tests/unit/python/expressions/test_binary_reduce_condition.py b/tests/unit/codegen/sdk/python/expressions/test_binary_reduce_condition.py similarity index 100% rename from tests/unit/python/expressions/test_binary_reduce_condition.py rename to tests/unit/codegen/sdk/python/expressions/test_binary_reduce_condition.py diff --git a/tests/unit/python/expressions/test_boolean.py b/tests/unit/codegen/sdk/python/expressions/test_boolean.py similarity index 100% rename from tests/unit/python/expressions/test_boolean.py rename to tests/unit/codegen/sdk/python/expressions/test_boolean.py diff --git a/tests/unit/python/expressions/test_conditional_properties.py b/tests/unit/codegen/sdk/python/expressions/test_conditional_properties.py similarity index 100% rename from tests/unit/python/expressions/test_conditional_properties.py rename to tests/unit/codegen/sdk/python/expressions/test_conditional_properties.py diff --git a/tests/unit/python/expressions/test_conditional_reduce_condition.py b/tests/unit/codegen/sdk/python/expressions/test_conditional_reduce_condition.py similarity index 100% rename from tests/unit/python/expressions/test_conditional_reduce_condition.py rename to tests/unit/codegen/sdk/python/expressions/test_conditional_reduce_condition.py diff --git a/tests/unit/python/expressions/test_dict.py b/tests/unit/codegen/sdk/python/expressions/test_dict.py similarity index 100% rename from tests/unit/python/expressions/test_dict.py rename to tests/unit/codegen/sdk/python/expressions/test_dict.py diff --git a/tests/unit/python/expressions/test_list.py b/tests/unit/codegen/sdk/python/expressions/test_list.py similarity index 100% rename from tests/unit/python/expressions/test_list.py rename to tests/unit/codegen/sdk/python/expressions/test_list.py diff --git a/tests/unit/python/expressions/test_number.py b/tests/unit/codegen/sdk/python/expressions/test_number.py similarity index 100% rename from tests/unit/python/expressions/test_number.py rename to tests/unit/codegen/sdk/python/expressions/test_number.py diff --git a/tests/unit/python/expressions/test_string.py b/tests/unit/codegen/sdk/python/expressions/test_string.py similarity index 100% rename from tests/unit/python/expressions/test_string.py rename to tests/unit/codegen/sdk/python/expressions/test_string.py diff --git a/tests/unit/python/expressions/test_tuple.py b/tests/unit/codegen/sdk/python/expressions/test_tuple.py similarity index 100% rename from tests/unit/python/expressions/test_tuple.py rename to tests/unit/codegen/sdk/python/expressions/test_tuple.py diff --git a/tests/unit/python/expressions/test_type.py b/tests/unit/codegen/sdk/python/expressions/test_type.py similarity index 100% rename from tests/unit/python/expressions/test_type.py rename to tests/unit/codegen/sdk/python/expressions/test_type.py diff --git a/tests/unit/python/expressions/test_value.py b/tests/unit/codegen/sdk/python/expressions/test_value.py similarity index 100% rename from tests/unit/python/expressions/test_value.py rename to tests/unit/codegen/sdk/python/expressions/test_value.py diff --git a/tests/unit/python/detached_symbols/parameter/__init__.py b/tests/unit/codegen/sdk/python/file/__init__.py similarity index 100% rename from tests/unit/python/detached_symbols/parameter/__init__.py rename to tests/unit/codegen/sdk/python/file/__init__.py diff --git a/tests/unit/python/file/test_ast_grep.py b/tests/unit/codegen/sdk/python/file/test_ast_grep.py similarity index 100% rename from tests/unit/python/file/test_ast_grep.py rename to tests/unit/codegen/sdk/python/file/test_ast_grep.py diff --git a/tests/unit/python/file/test_file_add_import_from_import_string.py b/tests/unit/codegen/sdk/python/file/test_file_add_import_from_import_string.py similarity index 100% rename from tests/unit/python/file/test_file_add_import_from_import_string.py rename to tests/unit/codegen/sdk/python/file/test_file_add_import_from_import_string.py diff --git a/tests/unit/python/file/test_file_add_symbol_from_source.py b/tests/unit/codegen/sdk/python/file/test_file_add_symbol_from_source.py similarity index 100% rename from tests/unit/python/file/test_file_add_symbol_from_source.py rename to tests/unit/codegen/sdk/python/file/test_file_add_symbol_from_source.py diff --git a/tests/unit/python/file/test_file_add_symbol_import.py b/tests/unit/codegen/sdk/python/file/test_file_add_symbol_import.py similarity index 100% rename from tests/unit/python/file/test_file_add_symbol_import.py rename to tests/unit/codegen/sdk/python/file/test_file_add_symbol_import.py diff --git a/tests/unit/python/file/test_file_editable.py b/tests/unit/codegen/sdk/python/file/test_file_editable.py similarity index 100% rename from tests/unit/python/file/test_file_editable.py rename to tests/unit/codegen/sdk/python/file/test_file_editable.py diff --git a/tests/unit/python/file/test_file_exportable.py b/tests/unit/codegen/sdk/python/file/test_file_exportable.py similarity index 100% rename from tests/unit/python/file/test_file_exportable.py rename to tests/unit/codegen/sdk/python/file/test_file_exportable.py diff --git a/tests/unit/python/file/test_file_get_function_calls.py b/tests/unit/codegen/sdk/python/file/test_file_get_function_calls.py similarity index 100% rename from tests/unit/python/file/test_file_get_function_calls.py rename to tests/unit/codegen/sdk/python/file/test_file_get_function_calls.py diff --git a/tests/unit/python/file/test_file_get_import_string.py b/tests/unit/codegen/sdk/python/file/test_file_get_import_string.py similarity index 100% rename from tests/unit/python/file/test_file_get_import_string.py rename to tests/unit/codegen/sdk/python/file/test_file_get_import_string.py diff --git a/tests/unit/python/file/test_file_global_calls.py b/tests/unit/codegen/sdk/python/file/test_file_global_calls.py similarity index 100% rename from tests/unit/python/file/test_file_global_calls.py rename to tests/unit/codegen/sdk/python/file/test_file_global_calls.py diff --git a/tests/unit/python/file/test_file_owners.py b/tests/unit/codegen/sdk/python/file/test_file_owners.py similarity index 100% rename from tests/unit/python/file/test_file_owners.py rename to tests/unit/codegen/sdk/python/file/test_file_owners.py diff --git a/tests/unit/python/file/test_file_properties.py b/tests/unit/codegen/sdk/python/file/test_file_properties.py similarity index 100% rename from tests/unit/python/file/test_file_properties.py rename to tests/unit/codegen/sdk/python/file/test_file_properties.py diff --git a/tests/unit/python/file/test_file_remove.py b/tests/unit/codegen/sdk/python/file/test_file_remove.py similarity index 100% rename from tests/unit/python/file/test_file_remove.py rename to tests/unit/codegen/sdk/python/file/test_file_remove.py diff --git a/tests/unit/python/file/test_file_reparse.py b/tests/unit/codegen/sdk/python/file/test_file_reparse.py similarity index 98% rename from tests/unit/python/file/test_file_reparse.py rename to tests/unit/codegen/sdk/python/file/test_file_reparse.py index f7bb442e7..b3ec166db 100644 --- a/tests/unit/python/file/test_file_reparse.py +++ b/tests/unit/codegen/sdk/python/file/test_file_reparse.py @@ -4,7 +4,7 @@ from codegen.sdk.core.codebase import Codebase from codegen.sdk.core.file import File from codegen.sdk.enums import EdgeType -from tests.unit.python.utils.test_file_contents import file1_content, file2_content +from tests.unit.codegen.sdk.python.utils.test_file_contents import file1_content, file2_content @pytest.fixture(scope="function") diff --git a/tests/unit/python/file/test_file_statements.py b/tests/unit/codegen/sdk/python/file/test_file_statements.py similarity index 100% rename from tests/unit/python/file/test_file_statements.py rename to tests/unit/codegen/sdk/python/file/test_file_statements.py diff --git a/tests/unit/python/file/test_file_unicode.py b/tests/unit/codegen/sdk/python/file/test_file_unicode.py similarity index 100% rename from tests/unit/python/file/test_file_unicode.py rename to tests/unit/codegen/sdk/python/file/test_file_unicode.py diff --git a/tests/unit/python/file/test_file_update_filepath.py b/tests/unit/codegen/sdk/python/file/test_file_update_filepath.py similarity index 100% rename from tests/unit/python/file/test_file_update_filepath.py rename to tests/unit/codegen/sdk/python/file/test_file_update_filepath.py diff --git a/tests/unit/python/file/__init__.py b/tests/unit/codegen/sdk/python/function/__init__.py similarity index 100% rename from tests/unit/python/file/__init__.py rename to tests/unit/codegen/sdk/python/function/__init__.py diff --git a/tests/unit/python/function/test_function_async.py b/tests/unit/codegen/sdk/python/function/test_function_async.py similarity index 100% rename from tests/unit/python/function/test_function_async.py rename to tests/unit/codegen/sdk/python/function/test_function_async.py diff --git a/tests/unit/python/function/test_function_call_sites.py b/tests/unit/codegen/sdk/python/function/test_function_call_sites.py similarity index 100% rename from tests/unit/python/function/test_function_call_sites.py rename to tests/unit/codegen/sdk/python/function/test_function_call_sites.py diff --git a/tests/unit/python/function/test_function_dependencies.py b/tests/unit/codegen/sdk/python/function/test_function_dependencies.py similarity index 100% rename from tests/unit/python/function/test_function_dependencies.py rename to tests/unit/codegen/sdk/python/function/test_function_dependencies.py diff --git a/tests/unit/python/function/test_function_editable.py b/tests/unit/codegen/sdk/python/function/test_function_editable.py similarity index 100% rename from tests/unit/python/function/test_function_editable.py rename to tests/unit/codegen/sdk/python/function/test_function_editable.py diff --git a/tests/unit/python/function/test_function_eq.py b/tests/unit/codegen/sdk/python/function/test_function_eq.py similarity index 100% rename from tests/unit/python/function/test_function_eq.py rename to tests/unit/codegen/sdk/python/function/test_function_eq.py diff --git a/tests/unit/python/function/test_function_exportable.py b/tests/unit/codegen/sdk/python/function/test_function_exportable.py similarity index 100% rename from tests/unit/python/function/test_function_exportable.py rename to tests/unit/codegen/sdk/python/function/test_function_exportable.py diff --git a/tests/unit/python/function/test_function_function_calls.py b/tests/unit/codegen/sdk/python/function/test_function_function_calls.py similarity index 100% rename from tests/unit/python/function/test_function_function_calls.py rename to tests/unit/codegen/sdk/python/function/test_function_function_calls.py diff --git a/tests/unit/python/function/test_function_get_parameter_by_index.py b/tests/unit/codegen/sdk/python/function/test_function_get_parameter_by_index.py similarity index 100% rename from tests/unit/python/function/test_function_get_parameter_by_index.py rename to tests/unit/codegen/sdk/python/function/test_function_get_parameter_by_index.py diff --git a/tests/unit/python/function/test_function_importable.py b/tests/unit/codegen/sdk/python/function/test_function_importable.py similarity index 100% rename from tests/unit/python/function/test_function_importable.py rename to tests/unit/codegen/sdk/python/function/test_function_importable.py diff --git a/tests/unit/python/function/test_function_insert_statements.py b/tests/unit/codegen/sdk/python/function/test_function_insert_statements.py similarity index 100% rename from tests/unit/python/function/test_function_insert_statements.py rename to tests/unit/codegen/sdk/python/function/test_function_insert_statements.py diff --git a/tests/unit/python/function/test_function_move_to_file.py b/tests/unit/codegen/sdk/python/function/test_function_move_to_file.py similarity index 100% rename from tests/unit/python/function/test_function_move_to_file.py rename to tests/unit/codegen/sdk/python/function/test_function_move_to_file.py diff --git a/tests/unit/python/function/test_function_nested_functions.py b/tests/unit/codegen/sdk/python/function/test_function_nested_functions.py similarity index 100% rename from tests/unit/python/function/test_function_nested_functions.py rename to tests/unit/codegen/sdk/python/function/test_function_nested_functions.py diff --git a/tests/unit/python/function/test_function_parse.py b/tests/unit/codegen/sdk/python/function/test_function_parse.py similarity index 100% rename from tests/unit/python/function/test_function_parse.py rename to tests/unit/codegen/sdk/python/function/test_function_parse.py diff --git a/tests/unit/python/function/test_function_prepend_statements.py b/tests/unit/codegen/sdk/python/function/test_function_prepend_statements.py similarity index 100% rename from tests/unit/python/function/test_function_prepend_statements.py rename to tests/unit/codegen/sdk/python/function/test_function_prepend_statements.py diff --git a/tests/unit/python/function/test_function_properties.py b/tests/unit/codegen/sdk/python/function/test_function_properties.py similarity index 100% rename from tests/unit/python/function/test_function_properties.py rename to tests/unit/codegen/sdk/python/function/test_function_properties.py diff --git a/tests/unit/python/function/test_function_remove.py b/tests/unit/codegen/sdk/python/function/test_function_remove.py similarity index 100% rename from tests/unit/python/function/test_function_remove.py rename to tests/unit/codegen/sdk/python/function/test_function_remove.py diff --git a/tests/unit/python/function/test_function_rename.py b/tests/unit/codegen/sdk/python/function/test_function_rename.py similarity index 100% rename from tests/unit/python/function/test_function_rename.py rename to tests/unit/codegen/sdk/python/function/test_function_rename.py diff --git a/tests/unit/python/function/test_function_set_docstring.py b/tests/unit/codegen/sdk/python/function/test_function_set_docstring.py similarity index 100% rename from tests/unit/python/function/test_function_set_docstring.py rename to tests/unit/codegen/sdk/python/function/test_function_set_docstring.py diff --git a/tests/unit/python/function/test_function_usages.py b/tests/unit/codegen/sdk/python/function/test_function_usages.py similarity index 100% rename from tests/unit/python/function/test_function_usages.py rename to tests/unit/codegen/sdk/python/function/test_function_usages.py diff --git a/tests/unit/python/function/test_manipulations_function.py b/tests/unit/codegen/sdk/python/function/test_manipulations_function.py similarity index 100% rename from tests/unit/python/function/test_manipulations_function.py rename to tests/unit/codegen/sdk/python/function/test_manipulations_function.py diff --git a/tests/unit/python/function/__init__.py b/tests/unit/codegen/sdk/python/global_var/__init__.py similarity index 100% rename from tests/unit/python/function/__init__.py rename to tests/unit/codegen/sdk/python/global_var/__init__.py diff --git a/tests/unit/python/global_var/test_global_var_editable.py b/tests/unit/codegen/sdk/python/global_var/test_global_var_editable.py similarity index 98% rename from tests/unit/python/global_var/test_global_var_editable.py rename to tests/unit/codegen/sdk/python/global_var/test_global_var_editable.py index 94ef6f67f..c524f89ed 100644 --- a/tests/unit/python/global_var/test_global_var_editable.py +++ b/tests/unit/codegen/sdk/python/global_var/test_global_var_editable.py @@ -1,5 +1,5 @@ from codegen.sdk.codebase.factory.get_session import get_codebase_session -from tests.unit.python.utils.test_file_contents import file1_content, file2_content +from tests.unit.codegen.sdk.python.utils.test_file_contents import file1_content, file2_content def test_global_var_source(tmpdir) -> None: diff --git a/tests/unit/python/global_var/test_global_var_exportable.py b/tests/unit/codegen/sdk/python/global_var/test_global_var_exportable.py similarity index 100% rename from tests/unit/python/global_var/test_global_var_exportable.py rename to tests/unit/codegen/sdk/python/global_var/test_global_var_exportable.py diff --git a/tests/unit/python/global_var/test_global_var_has_value.py b/tests/unit/codegen/sdk/python/global_var/test_global_var_has_value.py similarity index 100% rename from tests/unit/python/global_var/test_global_var_has_value.py rename to tests/unit/codegen/sdk/python/global_var/test_global_var_has_value.py diff --git a/tests/unit/python/global_var/test_global_var_importable.py b/tests/unit/codegen/sdk/python/global_var/test_global_var_importable.py similarity index 100% rename from tests/unit/python/global_var/test_global_var_importable.py rename to tests/unit/codegen/sdk/python/global_var/test_global_var_importable.py diff --git a/tests/unit/python/global_var/test_global_var_properties.py b/tests/unit/codegen/sdk/python/global_var/test_global_var_properties.py similarity index 100% rename from tests/unit/python/global_var/test_global_var_properties.py rename to tests/unit/codegen/sdk/python/global_var/test_global_var_properties.py diff --git a/tests/unit/python/global_var/test_global_var_remove.py b/tests/unit/codegen/sdk/python/global_var/test_global_var_remove.py similarity index 100% rename from tests/unit/python/global_var/test_global_var_remove.py rename to tests/unit/codegen/sdk/python/global_var/test_global_var_remove.py diff --git a/tests/unit/python/global_var/test_global_var_rename.py b/tests/unit/codegen/sdk/python/global_var/test_global_var_rename.py similarity index 100% rename from tests/unit/python/global_var/test_global_var_rename.py rename to tests/unit/codegen/sdk/python/global_var/test_global_var_rename.py diff --git a/tests/unit/python/global_var/test_global_var_special.py b/tests/unit/codegen/sdk/python/global_var/test_global_var_special.py similarity index 100% rename from tests/unit/python/global_var/test_global_var_special.py rename to tests/unit/codegen/sdk/python/global_var/test_global_var_special.py diff --git a/tests/unit/python/global_var/__init__.py b/tests/unit/codegen/sdk/python/import_resolution/__init__.py similarity index 100% rename from tests/unit/python/global_var/__init__.py rename to tests/unit/codegen/sdk/python/import_resolution/__init__.py diff --git a/tests/unit/python/import_resolution/test_has_import.py b/tests/unit/codegen/sdk/python/import_resolution/test_has_import.py similarity index 100% rename from tests/unit/python/import_resolution/test_has_import.py rename to tests/unit/codegen/sdk/python/import_resolution/test_has_import.py diff --git a/tests/unit/python/import_resolution/test_import_editable.py b/tests/unit/codegen/sdk/python/import_resolution/test_import_editable.py similarity index 100% rename from tests/unit/python/import_resolution/test_import_editable.py rename to tests/unit/codegen/sdk/python/import_resolution/test_import_editable.py diff --git a/tests/unit/python/import_resolution/test_import_exportable.py b/tests/unit/codegen/sdk/python/import_resolution/test_import_exportable.py similarity index 100% rename from tests/unit/python/import_resolution/test_import_exportable.py rename to tests/unit/codegen/sdk/python/import_resolution/test_import_exportable.py diff --git a/tests/unit/python/import_resolution/test_import_from_import_statements.py b/tests/unit/codegen/sdk/python/import_resolution/test_import_from_import_statements.py similarity index 100% rename from tests/unit/python/import_resolution/test_import_from_import_statements.py rename to tests/unit/codegen/sdk/python/import_resolution/test_import_from_import_statements.py diff --git a/tests/unit/python/import_resolution/test_import_relative.py b/tests/unit/codegen/sdk/python/import_resolution/test_import_relative.py similarity index 100% rename from tests/unit/python/import_resolution/test_import_relative.py rename to tests/unit/codegen/sdk/python/import_resolution/test_import_relative.py diff --git a/tests/unit/python/import_resolution/test_import_remove.py b/tests/unit/codegen/sdk/python/import_resolution/test_import_remove.py similarity index 100% rename from tests/unit/python/import_resolution/test_import_remove.py rename to tests/unit/codegen/sdk/python/import_resolution/test_import_remove.py diff --git a/tests/unit/python/import_resolution/test_import_rename.py b/tests/unit/codegen/sdk/python/import_resolution/test_import_rename.py similarity index 100% rename from tests/unit/python/import_resolution/test_import_rename.py rename to tests/unit/codegen/sdk/python/import_resolution/test_import_rename.py diff --git a/tests/unit/python/import_resolution/test_import_resolution.py b/tests/unit/codegen/sdk/python/import_resolution/test_import_resolution.py similarity index 100% rename from tests/unit/python/import_resolution/test_import_resolution.py rename to tests/unit/codegen/sdk/python/import_resolution/test_import_resolution.py diff --git a/tests/unit/python/import_resolution/test_import_resolved_symbol.py b/tests/unit/codegen/sdk/python/import_resolution/test_import_resolved_symbol.py similarity index 100% rename from tests/unit/python/import_resolution/test_import_resolved_symbol.py rename to tests/unit/codegen/sdk/python/import_resolution/test_import_resolved_symbol.py diff --git a/tests/unit/python/import_resolution/test_import_set_import_module.py b/tests/unit/codegen/sdk/python/import_resolution/test_import_set_import_module.py similarity index 100% rename from tests/unit/python/import_resolution/test_import_set_import_module.py rename to tests/unit/codegen/sdk/python/import_resolution/test_import_set_import_module.py diff --git a/tests/unit/python/import_resolution/test_import_set_import_symbol_alias.py b/tests/unit/codegen/sdk/python/import_resolution/test_import_set_import_symbol_alias.py similarity index 100% rename from tests/unit/python/import_resolution/test_import_set_import_symbol_alias.py rename to tests/unit/codegen/sdk/python/import_resolution/test_import_set_import_symbol_alias.py diff --git a/tests/unit/python/import_resolution/__init__.py b/tests/unit/codegen/sdk/python/statements/__init__.py similarity index 100% rename from tests/unit/python/import_resolution/__init__.py rename to tests/unit/codegen/sdk/python/statements/__init__.py diff --git a/tests/unit/python/statements/__init__.py b/tests/unit/codegen/sdk/python/statements/assignment_statement/__init__.py similarity index 100% rename from tests/unit/python/statements/__init__.py rename to tests/unit/codegen/sdk/python/statements/assignment_statement/__init__.py diff --git a/tests/unit/python/statements/assignment_statement/test_assignment_statement_remove.py b/tests/unit/codegen/sdk/python/statements/assignment_statement/test_assignment_statement_remove.py similarity index 100% rename from tests/unit/python/statements/assignment_statement/test_assignment_statement_remove.py rename to tests/unit/codegen/sdk/python/statements/assignment_statement/test_assignment_statement_remove.py diff --git a/tests/unit/python/statements/assignment_statement/test_assignment_statement_rename.py b/tests/unit/codegen/sdk/python/statements/assignment_statement/test_assignment_statement_rename.py similarity index 100% rename from tests/unit/python/statements/assignment_statement/test_assignment_statement_rename.py rename to tests/unit/codegen/sdk/python/statements/assignment_statement/test_assignment_statement_rename.py diff --git a/tests/unit/python/statements/assignment_statement/test_assignment_statement_set_assignment_value.py b/tests/unit/codegen/sdk/python/statements/assignment_statement/test_assignment_statement_set_assignment_value.py similarity index 100% rename from tests/unit/python/statements/assignment_statement/test_assignment_statement_set_assignment_value.py rename to tests/unit/codegen/sdk/python/statements/assignment_statement/test_assignment_statement_set_assignment_value.py diff --git a/tests/unit/python/statements/assignment_statement/__init__.py b/tests/unit/codegen/sdk/python/statements/attribute/__init__.py similarity index 100% rename from tests/unit/python/statements/assignment_statement/__init__.py rename to tests/unit/codegen/sdk/python/statements/attribute/__init__.py diff --git a/tests/unit/python/statements/attribute/test_attribute_assignment_value.py b/tests/unit/codegen/sdk/python/statements/attribute/test_attribute_assignment_value.py similarity index 100% rename from tests/unit/python/statements/attribute/test_attribute_assignment_value.py rename to tests/unit/codegen/sdk/python/statements/attribute/test_attribute_assignment_value.py diff --git a/tests/unit/python/statements/attribute/test_attribute_get_usages.py b/tests/unit/codegen/sdk/python/statements/attribute/test_attribute_get_usages.py similarity index 100% rename from tests/unit/python/statements/attribute/test_attribute_get_usages.py rename to tests/unit/codegen/sdk/python/statements/attribute/test_attribute_get_usages.py diff --git a/tests/unit/python/statements/attribute/test_attribute_properties.py b/tests/unit/codegen/sdk/python/statements/attribute/test_attribute_properties.py similarity index 100% rename from tests/unit/python/statements/attribute/test_attribute_properties.py rename to tests/unit/codegen/sdk/python/statements/attribute/test_attribute_properties.py diff --git a/tests/unit/python/statements/attribute/test_attribute_remove.py b/tests/unit/codegen/sdk/python/statements/attribute/test_attribute_remove.py similarity index 100% rename from tests/unit/python/statements/attribute/test_attribute_remove.py rename to tests/unit/codegen/sdk/python/statements/attribute/test_attribute_remove.py diff --git a/tests/unit/python/statements/attribute/test_attribute_rename.py b/tests/unit/codegen/sdk/python/statements/attribute/test_attribute_rename.py similarity index 100% rename from tests/unit/python/statements/attribute/test_attribute_rename.py rename to tests/unit/codegen/sdk/python/statements/attribute/test_attribute_rename.py diff --git a/tests/unit/python/statements/attribute/test_attribute_set_type_annotation.py b/tests/unit/codegen/sdk/python/statements/attribute/test_attribute_set_type_annotation.py similarity index 100% rename from tests/unit/python/statements/attribute/test_attribute_set_type_annotation.py rename to tests/unit/codegen/sdk/python/statements/attribute/test_attribute_set_type_annotation.py diff --git a/tests/unit/python/statements/for_loop_statement/test_for_loop_statement.py b/tests/unit/codegen/sdk/python/statements/for_loop_statement/test_for_loop_statement.py similarity index 100% rename from tests/unit/python/statements/for_loop_statement/test_for_loop_statement.py rename to tests/unit/codegen/sdk/python/statements/for_loop_statement/test_for_loop_statement.py diff --git a/tests/unit/python/statements/attribute/__init__.py b/tests/unit/codegen/sdk/python/statements/if_block_statement/__init__.py similarity index 100% rename from tests/unit/python/statements/attribute/__init__.py rename to tests/unit/codegen/sdk/python/statements/if_block_statement/__init__.py diff --git a/tests/unit/python/statements/if_block_statement/test_if_block_reduce_block.py b/tests/unit/codegen/sdk/python/statements/if_block_statement/test_if_block_reduce_block.py similarity index 100% rename from tests/unit/python/statements/if_block_statement/test_if_block_reduce_block.py rename to tests/unit/codegen/sdk/python/statements/if_block_statement/test_if_block_reduce_block.py diff --git a/tests/unit/python/statements/if_block_statement/test_if_block_statement_properties.py b/tests/unit/codegen/sdk/python/statements/if_block_statement/test_if_block_statement_properties.py similarity index 100% rename from tests/unit/python/statements/if_block_statement/test_if_block_statement_properties.py rename to tests/unit/codegen/sdk/python/statements/if_block_statement/test_if_block_statement_properties.py diff --git a/tests/unit/python/statements/if_block_statement/__init__.py b/tests/unit/codegen/sdk/python/statements/import_statement/__init__.py similarity index 100% rename from tests/unit/python/statements/if_block_statement/__init__.py rename to tests/unit/codegen/sdk/python/statements/import_statement/__init__.py diff --git a/tests/unit/python/statements/import_statement/test_import_statement.py b/tests/unit/codegen/sdk/python/statements/import_statement/test_import_statement.py similarity index 100% rename from tests/unit/python/statements/import_statement/test_import_statement.py rename to tests/unit/codegen/sdk/python/statements/import_statement/test_import_statement.py diff --git a/tests/unit/python/statements/match_statement/test_try_catch_statement.py b/tests/unit/codegen/sdk/python/statements/match_statement/test_try_catch_statement.py similarity index 100% rename from tests/unit/python/statements/match_statement/test_try_catch_statement.py rename to tests/unit/codegen/sdk/python/statements/match_statement/test_try_catch_statement.py diff --git a/tests/unit/python/statements/try_catch_statement/test_match_statement.py b/tests/unit/codegen/sdk/python/statements/try_catch_statement/test_match_statement.py similarity index 100% rename from tests/unit/python/statements/try_catch_statement/test_match_statement.py rename to tests/unit/codegen/sdk/python/statements/try_catch_statement/test_match_statement.py diff --git a/tests/unit/python/statements/while_statement/test_while_statement.py b/tests/unit/codegen/sdk/python/statements/while_statement/test_while_statement.py similarity index 100% rename from tests/unit/python/statements/while_statement/test_while_statement.py rename to tests/unit/codegen/sdk/python/statements/while_statement/test_while_statement.py diff --git a/tests/unit/python/statements/import_statement/__init__.py b/tests/unit/codegen/sdk/python/statements/with_statement/__init__.py similarity index 100% rename from tests/unit/python/statements/import_statement/__init__.py rename to tests/unit/codegen/sdk/python/statements/with_statement/__init__.py diff --git a/tests/unit/python/statements/with_statement/test_with_statement_properties.py b/tests/unit/codegen/sdk/python/statements/with_statement/test_with_statement_properties.py similarity index 100% rename from tests/unit/python/statements/with_statement/test_with_statement_properties.py rename to tests/unit/codegen/sdk/python/statements/with_statement/test_with_statement_properties.py diff --git a/tests/unit/python/test_print.py b/tests/unit/codegen/sdk/python/test_print.py similarity index 100% rename from tests/unit/python/test_print.py rename to tests/unit/codegen/sdk/python/test_print.py diff --git a/tests/unit/python/statements/with_statement/__init__.py b/tests/unit/codegen/sdk/python/utils/__init__.py similarity index 100% rename from tests/unit/python/statements/with_statement/__init__.py rename to tests/unit/codegen/sdk/python/utils/__init__.py diff --git a/tests/unit/python/utils/test_file_contents.py b/tests/unit/codegen/sdk/python/utils/test_file_contents.py similarity index 100% rename from tests/unit/python/utils/test_file_contents.py rename to tests/unit/codegen/sdk/python/utils/test_file_contents.py diff --git a/tests/unit/python/utils/__init__.py b/tests/unit/codegen/sdk/skills/__init__.py similarity index 100% rename from tests/unit/python/utils/__init__.py rename to tests/unit/codegen/sdk/skills/__init__.py diff --git a/tests/unit/skills/snapshots/test_skills/test_all_example_skills/call_graph_filter-PYTHON-case-0/call_graph_filter_unnamed.json b/tests/unit/codegen/sdk/skills/snapshots/test_skills/test_all_example_skills/call_graph_filter-PYTHON-case-0/call_graph_filter_unnamed.json similarity index 100% rename from tests/unit/skills/snapshots/test_skills/test_all_example_skills/call_graph_filter-PYTHON-case-0/call_graph_filter_unnamed.json rename to tests/unit/codegen/sdk/skills/snapshots/test_skills/test_all_example_skills/call_graph_filter-PYTHON-case-0/call_graph_filter_unnamed.json diff --git a/tests/unit/skills/snapshots/test_skills/test_all_example_skills/call_graph_from_node-PYTHON-case-0/call_graph_from_node_unnamed.json b/tests/unit/codegen/sdk/skills/snapshots/test_skills/test_all_example_skills/call_graph_from_node-PYTHON-case-0/call_graph_from_node_unnamed.json similarity index 100% rename from tests/unit/skills/snapshots/test_skills/test_all_example_skills/call_graph_from_node-PYTHON-case-0/call_graph_from_node_unnamed.json rename to tests/unit/codegen/sdk/skills/snapshots/test_skills/test_all_example_skills/call_graph_from_node-PYTHON-case-0/call_graph_from_node_unnamed.json diff --git a/tests/unit/skills/snapshots/test_skills/test_all_example_skills/call_paths_between_nodes-PYTHON-case-0/call_paths_between_nodes_unnamed.json b/tests/unit/codegen/sdk/skills/snapshots/test_skills/test_all_example_skills/call_paths_between_nodes-PYTHON-case-0/call_paths_between_nodes_unnamed.json similarity index 100% rename from tests/unit/skills/snapshots/test_skills/test_all_example_skills/call_paths_between_nodes-PYTHON-case-0/call_paths_between_nodes_unnamed.json rename to tests/unit/codegen/sdk/skills/snapshots/test_skills/test_all_example_skills/call_paths_between_nodes-PYTHON-case-0/call_paths_between_nodes_unnamed.json diff --git a/tests/unit/skills/snapshots/test_skills/test_all_example_skills/dead_code-PYTHON-case-0/dead_code_unnamed.json b/tests/unit/codegen/sdk/skills/snapshots/test_skills/test_all_example_skills/dead_code-PYTHON-case-0/dead_code_unnamed.json similarity index 100% rename from tests/unit/skills/snapshots/test_skills/test_all_example_skills/dead_code-PYTHON-case-0/dead_code_unnamed.json rename to tests/unit/codegen/sdk/skills/snapshots/test_skills/test_all_example_skills/dead_code-PYTHON-case-0/dead_code_unnamed.json diff --git a/tests/unit/skills/snapshots/test_skills/test_all_example_skills/file_app_import_graph-PYTHON-case-0/file_app_import_graph_unnamed.json b/tests/unit/codegen/sdk/skills/snapshots/test_skills/test_all_example_skills/file_app_import_graph-PYTHON-case-0/file_app_import_graph_unnamed.json similarity index 100% rename from tests/unit/skills/snapshots/test_skills/test_all_example_skills/file_app_import_graph-PYTHON-case-0/file_app_import_graph_unnamed.json rename to tests/unit/codegen/sdk/skills/snapshots/test_skills/test_all_example_skills/file_app_import_graph-PYTHON-case-0/file_app_import_graph_unnamed.json diff --git a/tests/unit/skills/snapshots/test_skills/test_all_example_skills/foreign_key_graph-PYTHON-case-0/foreign_key_graph_unnamed.json b/tests/unit/codegen/sdk/skills/snapshots/test_skills/test_all_example_skills/foreign_key_graph-PYTHON-case-0/foreign_key_graph_unnamed.json similarity index 100% rename from tests/unit/skills/snapshots/test_skills/test_all_example_skills/foreign_key_graph-PYTHON-case-0/foreign_key_graph_unnamed.json rename to tests/unit/codegen/sdk/skills/snapshots/test_skills/test_all_example_skills/foreign_key_graph-PYTHON-case-0/foreign_key_graph_unnamed.json diff --git a/tests/unit/skills/snapshots/test_skills/test_all_example_skills/repo_dir_tree-PYTHON-case-0/repo_dir_tree_unnamed.json b/tests/unit/codegen/sdk/skills/snapshots/test_skills/test_all_example_skills/repo_dir_tree-PYTHON-case-0/repo_dir_tree_unnamed.json similarity index 100% rename from tests/unit/skills/snapshots/test_skills/test_all_example_skills/repo_dir_tree-PYTHON-case-0/repo_dir_tree_unnamed.json rename to tests/unit/codegen/sdk/skills/snapshots/test_skills/test_all_example_skills/repo_dir_tree-PYTHON-case-0/repo_dir_tree_unnamed.json diff --git a/tests/unit/skills/test_skills.py b/tests/unit/codegen/sdk/skills/test_skills.py similarity index 100% rename from tests/unit/skills/test_skills.py rename to tests/unit/codegen/sdk/skills/test_skills.py diff --git a/tests/unit/skills/__init__.py b/tests/unit/codegen/sdk/typescript/__init__.py similarity index 100% rename from tests/unit/skills/__init__.py rename to tests/unit/codegen/sdk/typescript/__init__.py diff --git a/tests/unit/typescript/autocommit/test_autocommit.py b/tests/unit/codegen/sdk/typescript/autocommit/test_autocommit.py similarity index 100% rename from tests/unit/typescript/autocommit/test_autocommit.py rename to tests/unit/codegen/sdk/typescript/autocommit/test_autocommit.py diff --git a/tests/unit/typescript/class_definition/test_abstract_class.py b/tests/unit/codegen/sdk/typescript/class_definition/test_abstract_class.py similarity index 100% rename from tests/unit/typescript/class_definition/test_abstract_class.py rename to tests/unit/codegen/sdk/typescript/class_definition/test_abstract_class.py diff --git a/tests/unit/typescript/class_definition/test_class_add_attribute.py b/tests/unit/codegen/sdk/typescript/class_definition/test_class_add_attribute.py similarity index 100% rename from tests/unit/typescript/class_definition/test_class_add_attribute.py rename to tests/unit/codegen/sdk/typescript/class_definition/test_class_add_attribute.py diff --git a/tests/unit/typescript/class_definition/test_class_add_decorator.py b/tests/unit/codegen/sdk/typescript/class_definition/test_class_add_decorator.py similarity index 100% rename from tests/unit/typescript/class_definition/test_class_add_decorator.py rename to tests/unit/codegen/sdk/typescript/class_definition/test_class_add_decorator.py diff --git a/tests/unit/typescript/class_definition/test_class_add_method.py b/tests/unit/codegen/sdk/typescript/class_definition/test_class_add_method.py similarity index 100% rename from tests/unit/typescript/class_definition/test_class_add_method.py rename to tests/unit/codegen/sdk/typescript/class_definition/test_class_add_method.py diff --git a/tests/unit/typescript/class_definition/test_class_attributes.py b/tests/unit/codegen/sdk/typescript/class_definition/test_class_attributes.py similarity index 100% rename from tests/unit/typescript/class_definition/test_class_attributes.py rename to tests/unit/codegen/sdk/typescript/class_definition/test_class_attributes.py diff --git a/tests/unit/typescript/class_definition/test_class_code_block.py b/tests/unit/codegen/sdk/typescript/class_definition/test_class_code_block.py similarity index 100% rename from tests/unit/typescript/class_definition/test_class_code_block.py rename to tests/unit/codegen/sdk/typescript/class_definition/test_class_code_block.py diff --git a/tests/unit/typescript/class_definition/test_class_comment.py b/tests/unit/codegen/sdk/typescript/class_definition/test_class_comment.py similarity index 100% rename from tests/unit/typescript/class_definition/test_class_comment.py rename to tests/unit/codegen/sdk/typescript/class_definition/test_class_comment.py diff --git a/tests/unit/typescript/class_definition/test_class_constructor_usages.py b/tests/unit/codegen/sdk/typescript/class_definition/test_class_constructor_usages.py similarity index 100% rename from tests/unit/typescript/class_definition/test_class_constructor_usages.py rename to tests/unit/codegen/sdk/typescript/class_definition/test_class_constructor_usages.py diff --git a/tests/unit/typescript/class_definition/test_class_definition_is_jsx.py b/tests/unit/codegen/sdk/typescript/class_definition/test_class_definition_is_jsx.py similarity index 100% rename from tests/unit/typescript/class_definition/test_class_definition_is_jsx.py rename to tests/unit/codegen/sdk/typescript/class_definition/test_class_definition_is_jsx.py diff --git a/tests/unit/typescript/class_definition/test_class_dependencies.py b/tests/unit/codegen/sdk/typescript/class_definition/test_class_dependencies.py similarity index 100% rename from tests/unit/typescript/class_definition/test_class_dependencies.py rename to tests/unit/codegen/sdk/typescript/class_definition/test_class_dependencies.py diff --git a/tests/unit/typescript/class_definition/test_class_filter.py b/tests/unit/codegen/sdk/typescript/class_definition/test_class_filter.py similarity index 100% rename from tests/unit/typescript/class_definition/test_class_filter.py rename to tests/unit/codegen/sdk/typescript/class_definition/test_class_filter.py diff --git a/tests/unit/typescript/class_definition/test_class_is_exported.py b/tests/unit/codegen/sdk/typescript/class_definition/test_class_is_exported.py similarity index 100% rename from tests/unit/typescript/class_definition/test_class_is_exported.py rename to tests/unit/codegen/sdk/typescript/class_definition/test_class_is_exported.py diff --git a/tests/unit/typescript/class_definition/test_class_method_usages.py b/tests/unit/codegen/sdk/typescript/class_definition/test_class_method_usages.py similarity index 100% rename from tests/unit/typescript/class_definition/test_class_method_usages.py rename to tests/unit/codegen/sdk/typescript/class_definition/test_class_method_usages.py diff --git a/tests/unit/typescript/class_definition/test_class_parameters.py b/tests/unit/codegen/sdk/typescript/class_definition/test_class_parameters.py similarity index 100% rename from tests/unit/typescript/class_definition/test_class_parameters.py rename to tests/unit/codegen/sdk/typescript/class_definition/test_class_parameters.py diff --git a/tests/unit/typescript/class_definition/test_class_parent_class_names.py b/tests/unit/codegen/sdk/typescript/class_definition/test_class_parent_class_names.py similarity index 100% rename from tests/unit/typescript/class_definition/test_class_parent_class_names.py rename to tests/unit/codegen/sdk/typescript/class_definition/test_class_parent_class_names.py diff --git a/tests/unit/typescript/class_definition/test_class_parent_classes.py b/tests/unit/codegen/sdk/typescript/class_definition/test_class_parent_classes.py similarity index 100% rename from tests/unit/typescript/class_definition/test_class_parent_classes.py rename to tests/unit/codegen/sdk/typescript/class_definition/test_class_parent_classes.py diff --git a/tests/unit/typescript/class_definition/test_class_rename.py b/tests/unit/codegen/sdk/typescript/class_definition/test_class_rename.py similarity index 100% rename from tests/unit/typescript/class_definition/test_class_rename.py rename to tests/unit/codegen/sdk/typescript/class_definition/test_class_rename.py diff --git a/tests/unit/typescript/class_definition/test_class_rename_class_attributes.py b/tests/unit/codegen/sdk/typescript/class_definition/test_class_rename_class_attributes.py similarity index 100% rename from tests/unit/typescript/class_definition/test_class_rename_class_attributes.py rename to tests/unit/codegen/sdk/typescript/class_definition/test_class_rename_class_attributes.py diff --git a/tests/unit/typescript/codebase/test_codebase_resolution.py b/tests/unit/codegen/sdk/typescript/codebase/test_codebase_resolution.py similarity index 100% rename from tests/unit/typescript/codebase/test_codebase_resolution.py rename to tests/unit/codegen/sdk/typescript/codebase/test_codebase_resolution.py diff --git a/tests/unit/typescript/__init__.py b/tests/unit/codegen/sdk/typescript/comment_docstring/__init__.py similarity index 100% rename from tests/unit/typescript/__init__.py rename to tests/unit/codegen/sdk/typescript/comment_docstring/__init__.py diff --git a/tests/unit/typescript/comment_docstring/test_comment.py b/tests/unit/codegen/sdk/typescript/comment_docstring/test_comment.py similarity index 100% rename from tests/unit/typescript/comment_docstring/test_comment.py rename to tests/unit/codegen/sdk/typescript/comment_docstring/test_comment.py diff --git a/tests/unit/typescript/comment_docstring/test_comment_edit.py b/tests/unit/codegen/sdk/typescript/comment_docstring/test_comment_edit.py similarity index 100% rename from tests/unit/typescript/comment_docstring/test_comment_edit.py rename to tests/unit/codegen/sdk/typescript/comment_docstring/test_comment_edit.py diff --git a/tests/unit/typescript/comment_docstring/test_comment_insert_add.py b/tests/unit/codegen/sdk/typescript/comment_docstring/test_comment_insert_add.py similarity index 100% rename from tests/unit/typescript/comment_docstring/test_comment_insert_add.py rename to tests/unit/codegen/sdk/typescript/comment_docstring/test_comment_insert_add.py diff --git a/tests/unit/typescript/comment_docstring/test_docstring.py b/tests/unit/codegen/sdk/typescript/comment_docstring/test_docstring.py similarity index 100% rename from tests/unit/typescript/comment_docstring/test_docstring.py rename to tests/unit/codegen/sdk/typescript/comment_docstring/test_docstring.py diff --git a/tests/unit/typescript/comment_docstring/test_docstring_edit.py b/tests/unit/codegen/sdk/typescript/comment_docstring/test_docstring_edit.py similarity index 100% rename from tests/unit/typescript/comment_docstring/test_docstring_edit.py rename to tests/unit/codegen/sdk/typescript/comment_docstring/test_docstring_edit.py diff --git a/tests/unit/typescript/comment_docstring/test_docstring_insert_add.py b/tests/unit/codegen/sdk/typescript/comment_docstring/test_docstring_insert_add.py similarity index 100% rename from tests/unit/typescript/comment_docstring/test_docstring_insert_add.py rename to tests/unit/codegen/sdk/typescript/comment_docstring/test_docstring_insert_add.py diff --git a/tests/unit/typescript/comment_docstring/test_inline_comment.py b/tests/unit/codegen/sdk/typescript/comment_docstring/test_inline_comment.py similarity index 100% rename from tests/unit/typescript/comment_docstring/test_inline_comment.py rename to tests/unit/codegen/sdk/typescript/comment_docstring/test_inline_comment.py diff --git a/tests/unit/typescript/comment_docstring/test_inline_comment_edit.py b/tests/unit/codegen/sdk/typescript/comment_docstring/test_inline_comment_edit.py similarity index 100% rename from tests/unit/typescript/comment_docstring/test_inline_comment_edit.py rename to tests/unit/codegen/sdk/typescript/comment_docstring/test_inline_comment_edit.py diff --git a/tests/unit/typescript/comment_docstring/test_inline_comment_insert_add.py b/tests/unit/codegen/sdk/typescript/comment_docstring/test_inline_comment_insert_add.py similarity index 100% rename from tests/unit/typescript/comment_docstring/test_inline_comment_insert_add.py rename to tests/unit/codegen/sdk/typescript/comment_docstring/test_inline_comment_insert_add.py diff --git a/tests/unit/typescript/detached_symbols/argument/test_argument_edit.py b/tests/unit/codegen/sdk/typescript/detached_symbols/argument/test_argument_edit.py similarity index 100% rename from tests/unit/typescript/detached_symbols/argument/test_argument_edit.py rename to tests/unit/codegen/sdk/typescript/detached_symbols/argument/test_argument_edit.py diff --git a/tests/unit/typescript/detached_symbols/argument/test_fetch_parametes.py b/tests/unit/codegen/sdk/typescript/detached_symbols/argument/test_fetch_parametes.py similarity index 100% rename from tests/unit/typescript/detached_symbols/argument/test_fetch_parametes.py rename to tests/unit/codegen/sdk/typescript/detached_symbols/argument/test_fetch_parametes.py diff --git a/tests/unit/typescript/detached_symbols/code_block/test_code_block_get_local_var_assignment.py b/tests/unit/codegen/sdk/typescript/detached_symbols/code_block/test_code_block_get_local_var_assignment.py similarity index 100% rename from tests/unit/typescript/detached_symbols/code_block/test_code_block_get_local_var_assignment.py rename to tests/unit/codegen/sdk/typescript/detached_symbols/code_block/test_code_block_get_local_var_assignment.py diff --git a/tests/unit/typescript/detached_symbols/code_block/test_code_block_get_local_var_assignments.py b/tests/unit/codegen/sdk/typescript/detached_symbols/code_block/test_code_block_get_local_var_assignments.py similarity index 100% rename from tests/unit/typescript/detached_symbols/code_block/test_code_block_get_local_var_assignments.py rename to tests/unit/codegen/sdk/typescript/detached_symbols/code_block/test_code_block_get_local_var_assignments.py diff --git a/tests/unit/typescript/detached_symbols/code_block/test_code_block_get_variable_usages.py b/tests/unit/codegen/sdk/typescript/detached_symbols/code_block/test_code_block_get_variable_usages.py similarity index 100% rename from tests/unit/typescript/detached_symbols/code_block/test_code_block_get_variable_usages.py rename to tests/unit/codegen/sdk/typescript/detached_symbols/code_block/test_code_block_get_variable_usages.py diff --git a/tests/unit/typescript/detached_symbols/code_block/test_code_block_indent.py b/tests/unit/codegen/sdk/typescript/detached_symbols/code_block/test_code_block_indent.py similarity index 100% rename from tests/unit/typescript/detached_symbols/code_block/test_code_block_indent.py rename to tests/unit/codegen/sdk/typescript/detached_symbols/code_block/test_code_block_indent.py diff --git a/tests/unit/typescript/detached_symbols/code_block/test_code_block_local_var_assignments.py b/tests/unit/codegen/sdk/typescript/detached_symbols/code_block/test_code_block_local_var_assignments.py similarity index 100% rename from tests/unit/typescript/detached_symbols/code_block/test_code_block_local_var_assignments.py rename to tests/unit/codegen/sdk/typescript/detached_symbols/code_block/test_code_block_local_var_assignments.py diff --git a/tests/unit/typescript/detached_symbols/code_block/test_code_block_unwrap.py b/tests/unit/codegen/sdk/typescript/detached_symbols/code_block/test_code_block_unwrap.py similarity index 100% rename from tests/unit/typescript/detached_symbols/code_block/test_code_block_unwrap.py rename to tests/unit/codegen/sdk/typescript/detached_symbols/code_block/test_code_block_unwrap.py diff --git a/tests/unit/typescript/detached_symbols/code_block/test_code_block_wrap.py b/tests/unit/codegen/sdk/typescript/detached_symbols/code_block/test_code_block_wrap.py similarity index 100% rename from tests/unit/typescript/detached_symbols/code_block/test_code_block_wrap.py rename to tests/unit/codegen/sdk/typescript/detached_symbols/code_block/test_code_block_wrap.py diff --git a/tests/unit/typescript/detached_symbols/decorator/test_decorator_call.py b/tests/unit/codegen/sdk/typescript/detached_symbols/decorator/test_decorator_call.py similarity index 100% rename from tests/unit/typescript/detached_symbols/decorator/test_decorator_call.py rename to tests/unit/codegen/sdk/typescript/detached_symbols/decorator/test_decorator_call.py diff --git a/tests/unit/typescript/detached_symbols/decorator/test_decorator_name.py b/tests/unit/codegen/sdk/typescript/detached_symbols/decorator/test_decorator_name.py similarity index 100% rename from tests/unit/typescript/detached_symbols/decorator/test_decorator_name.py rename to tests/unit/codegen/sdk/typescript/detached_symbols/decorator/test_decorator_name.py diff --git a/tests/unit/typescript/detached_symbols/function_call/test_function_call_extended_source.py b/tests/unit/codegen/sdk/typescript/detached_symbols/function_call/test_function_call_extended_source.py similarity index 100% rename from tests/unit/typescript/detached_symbols/function_call/test_function_call_extended_source.py rename to tests/unit/codegen/sdk/typescript/detached_symbols/function_call/test_function_call_extended_source.py diff --git a/tests/unit/typescript/detached_symbols/function_call/test_function_call_get_function_definition.py b/tests/unit/codegen/sdk/typescript/detached_symbols/function_call/test_function_call_get_function_definition.py similarity index 100% rename from tests/unit/typescript/detached_symbols/function_call/test_function_call_get_function_definition.py rename to tests/unit/codegen/sdk/typescript/detached_symbols/function_call/test_function_call_get_function_definition.py diff --git a/tests/unit/typescript/detached_symbols/function_call/test_function_call_is_awaited.py b/tests/unit/codegen/sdk/typescript/detached_symbols/function_call/test_function_call_is_awaited.py similarity index 100% rename from tests/unit/typescript/detached_symbols/function_call/test_function_call_is_awaited.py rename to tests/unit/codegen/sdk/typescript/detached_symbols/function_call/test_function_call_is_awaited.py diff --git a/tests/unit/typescript/detached_symbols/function_call/test_function_call_predecessor.py b/tests/unit/codegen/sdk/typescript/detached_symbols/function_call/test_function_call_predecessor.py similarity index 100% rename from tests/unit/typescript/detached_symbols/function_call/test_function_call_predecessor.py rename to tests/unit/codegen/sdk/typescript/detached_symbols/function_call/test_function_call_predecessor.py diff --git a/tests/unit/typescript/detached_symbols/function_call/test_function_call_rename.py b/tests/unit/codegen/sdk/typescript/detached_symbols/function_call/test_function_call_rename.py similarity index 100% rename from tests/unit/typescript/detached_symbols/function_call/test_function_call_rename.py rename to tests/unit/codegen/sdk/typescript/detached_symbols/function_call/test_function_call_rename.py diff --git a/tests/unit/typescript/detached_symbols/function_call/test_function_call_type_resolution.py b/tests/unit/codegen/sdk/typescript/detached_symbols/function_call/test_function_call_type_resolution.py similarity index 100% rename from tests/unit/typescript/detached_symbols/function_call/test_function_call_type_resolution.py rename to tests/unit/codegen/sdk/typescript/detached_symbols/function_call/test_function_call_type_resolution.py diff --git a/tests/unit/typescript/detached_symbols/parameter/test_parameter_deconstructed.py b/tests/unit/codegen/sdk/typescript/detached_symbols/parameter/test_parameter_deconstructed.py similarity index 100% rename from tests/unit/typescript/detached_symbols/parameter/test_parameter_deconstructed.py rename to tests/unit/codegen/sdk/typescript/detached_symbols/parameter/test_parameter_deconstructed.py diff --git a/tests/unit/typescript/detached_symbols/parameter/test_parameter_edit.py b/tests/unit/codegen/sdk/typescript/detached_symbols/parameter/test_parameter_edit.py similarity index 100% rename from tests/unit/typescript/detached_symbols/parameter/test_parameter_edit.py rename to tests/unit/codegen/sdk/typescript/detached_symbols/parameter/test_parameter_edit.py diff --git a/tests/unit/typescript/detached_symbols/parameter/test_parameter_is_optional.py b/tests/unit/codegen/sdk/typescript/detached_symbols/parameter/test_parameter_is_optional.py similarity index 100% rename from tests/unit/typescript/detached_symbols/parameter/test_parameter_is_optional.py rename to tests/unit/codegen/sdk/typescript/detached_symbols/parameter/test_parameter_is_optional.py diff --git a/tests/unit/typescript/detached_symbols/parameter/test_parameter_is_variadic.py b/tests/unit/codegen/sdk/typescript/detached_symbols/parameter/test_parameter_is_variadic.py similarity index 100% rename from tests/unit/typescript/detached_symbols/parameter/test_parameter_is_variadic.py rename to tests/unit/codegen/sdk/typescript/detached_symbols/parameter/test_parameter_is_variadic.py diff --git a/tests/unit/typescript/detached_symbols/parameter/test_parameter_value.py b/tests/unit/codegen/sdk/typescript/detached_symbols/parameter/test_parameter_value.py similarity index 100% rename from tests/unit/typescript/detached_symbols/parameter/test_parameter_value.py rename to tests/unit/codegen/sdk/typescript/detached_symbols/parameter/test_parameter_value.py diff --git a/tests/unit/typescript/export/test_export_aliased.py b/tests/unit/codegen/sdk/typescript/export/test_export_aliased.py similarity index 100% rename from tests/unit/typescript/export/test_export_aliased.py rename to tests/unit/codegen/sdk/typescript/export/test_export_aliased.py diff --git a/tests/unit/typescript/export/test_export_export_statement.py b/tests/unit/codegen/sdk/typescript/export/test_export_export_statement.py similarity index 100% rename from tests/unit/typescript/export/test_export_export_statement.py rename to tests/unit/codegen/sdk/typescript/export/test_export_export_statement.py diff --git a/tests/unit/typescript/export/test_export_get_import_string.py b/tests/unit/codegen/sdk/typescript/export/test_export_get_import_string.py similarity index 100% rename from tests/unit/typescript/export/test_export_get_import_string.py rename to tests/unit/codegen/sdk/typescript/export/test_export_get_import_string.py diff --git a/tests/unit/typescript/export/test_export_get_reexport_source.py b/tests/unit/codegen/sdk/typescript/export/test_export_get_reexport_source.py similarity index 100% rename from tests/unit/typescript/export/test_export_get_reexport_source.py rename to tests/unit/codegen/sdk/typescript/export/test_export_get_reexport_source.py diff --git a/tests/unit/typescript/export/test_export_rename.py b/tests/unit/codegen/sdk/typescript/export/test_export_rename.py similarity index 100% rename from tests/unit/typescript/export/test_export_rename.py rename to tests/unit/codegen/sdk/typescript/export/test_export_rename.py diff --git a/tests/unit/typescript/export/test_export_resolve_export.py b/tests/unit/codegen/sdk/typescript/export/test_export_resolve_export.py similarity index 100% rename from tests/unit/typescript/export/test_export_resolve_export.py rename to tests/unit/codegen/sdk/typescript/export/test_export_resolve_export.py diff --git a/tests/unit/typescript/export/test_exportable_usages.py b/tests/unit/codegen/sdk/typescript/export/test_exportable_usages.py similarity index 100% rename from tests/unit/typescript/export/test_exportable_usages.py rename to tests/unit/codegen/sdk/typescript/export/test_exportable_usages.py diff --git a/tests/unit/typescript/export/test_external_export.py b/tests/unit/codegen/sdk/typescript/export/test_external_export.py similarity index 100% rename from tests/unit/typescript/export/test_external_export.py rename to tests/unit/codegen/sdk/typescript/export/test_external_export.py diff --git a/tests/unit/typescript/export/test_get_reexported_exports.py b/tests/unit/codegen/sdk/typescript/export/test_get_reexported_exports.py similarity index 100% rename from tests/unit/typescript/export/test_get_reexported_exports.py rename to tests/unit/codegen/sdk/typescript/export/test_get_reexported_exports.py diff --git a/tests/unit/typescript/comment_docstring/__init__.py b/tests/unit/codegen/sdk/typescript/expressions/__init__.py similarity index 100% rename from tests/unit/typescript/comment_docstring/__init__.py rename to tests/unit/codegen/sdk/typescript/expressions/__init__.py diff --git a/tests/unit/typescript/expressions/__init__.py b/tests/unit/codegen/sdk/typescript/expressions/ternary_expression/__init__.py similarity index 100% rename from tests/unit/typescript/expressions/__init__.py rename to tests/unit/codegen/sdk/typescript/expressions/ternary_expression/__init__.py diff --git a/tests/unit/typescript/expressions/ternary_expression/test_ternary_properties.py b/tests/unit/codegen/sdk/typescript/expressions/ternary_expression/test_ternary_properties.py similarity index 100% rename from tests/unit/typescript/expressions/ternary_expression/test_ternary_properties.py rename to tests/unit/codegen/sdk/typescript/expressions/ternary_expression/test_ternary_properties.py diff --git a/tests/unit/typescript/expressions/ternary_expression/test_ternary_reduce_condition.py b/tests/unit/codegen/sdk/typescript/expressions/ternary_expression/test_ternary_reduce_condition.py similarity index 100% rename from tests/unit/typescript/expressions/ternary_expression/test_ternary_reduce_condition.py rename to tests/unit/codegen/sdk/typescript/expressions/ternary_expression/test_ternary_reduce_condition.py diff --git a/tests/unit/typescript/expressions/test_binary_expression.py b/tests/unit/codegen/sdk/typescript/expressions/test_binary_expression.py similarity index 100% rename from tests/unit/typescript/expressions/test_binary_expression.py rename to tests/unit/codegen/sdk/typescript/expressions/test_binary_expression.py diff --git a/tests/unit/typescript/expressions/test_binary_reduce_condition.py b/tests/unit/codegen/sdk/typescript/expressions/test_binary_reduce_condition.py similarity index 100% rename from tests/unit/typescript/expressions/test_binary_reduce_condition.py rename to tests/unit/codegen/sdk/typescript/expressions/test_binary_reduce_condition.py diff --git a/tests/unit/typescript/expressions/test_boolean.py b/tests/unit/codegen/sdk/typescript/expressions/test_boolean.py similarity index 100% rename from tests/unit/typescript/expressions/test_boolean.py rename to tests/unit/codegen/sdk/typescript/expressions/test_boolean.py diff --git a/tests/unit/typescript/expressions/test_dict.py b/tests/unit/codegen/sdk/typescript/expressions/test_dict.py similarity index 100% rename from tests/unit/typescript/expressions/test_dict.py rename to tests/unit/codegen/sdk/typescript/expressions/test_dict.py diff --git a/tests/unit/typescript/expressions/test_expression.py b/tests/unit/codegen/sdk/typescript/expressions/test_expression.py similarity index 100% rename from tests/unit/typescript/expressions/test_expression.py rename to tests/unit/codegen/sdk/typescript/expressions/test_expression.py diff --git a/tests/unit/typescript/expressions/test_list.py b/tests/unit/codegen/sdk/typescript/expressions/test_list.py similarity index 100% rename from tests/unit/typescript/expressions/test_list.py rename to tests/unit/codegen/sdk/typescript/expressions/test_list.py diff --git a/tests/unit/typescript/expressions/test_number.py b/tests/unit/codegen/sdk/typescript/expressions/test_number.py similarity index 100% rename from tests/unit/typescript/expressions/test_number.py rename to tests/unit/codegen/sdk/typescript/expressions/test_number.py diff --git a/tests/unit/typescript/expressions/test_string.py b/tests/unit/codegen/sdk/typescript/expressions/test_string.py similarity index 100% rename from tests/unit/typescript/expressions/test_string.py rename to tests/unit/codegen/sdk/typescript/expressions/test_string.py diff --git a/tests/unit/typescript/expressions/test_type.py b/tests/unit/codegen/sdk/typescript/expressions/test_type.py similarity index 100% rename from tests/unit/typescript/expressions/test_type.py rename to tests/unit/codegen/sdk/typescript/expressions/test_type.py diff --git a/tests/unit/typescript/expressions/ternary_expression/__init__.py b/tests/unit/codegen/sdk/typescript/file/__init__.py similarity index 100% rename from tests/unit/typescript/expressions/ternary_expression/__init__.py rename to tests/unit/codegen/sdk/typescript/file/__init__.py diff --git a/tests/unit/typescript/file/test_file_add_symbol.py b/tests/unit/codegen/sdk/typescript/file/test_file_add_symbol.py similarity index 100% rename from tests/unit/typescript/file/test_file_add_symbol.py rename to tests/unit/codegen/sdk/typescript/file/test_file_add_symbol.py diff --git a/tests/unit/typescript/file/test_file_add_symbol_from_source.py b/tests/unit/codegen/sdk/typescript/file/test_file_add_symbol_from_source.py similarity index 100% rename from tests/unit/typescript/file/test_file_add_symbol_from_source.py rename to tests/unit/codegen/sdk/typescript/file/test_file_add_symbol_from_source.py diff --git a/tests/unit/typescript/file/test_file_add_symbol_import.py b/tests/unit/codegen/sdk/typescript/file/test_file_add_symbol_import.py similarity index 100% rename from tests/unit/typescript/file/test_file_add_symbol_import.py rename to tests/unit/codegen/sdk/typescript/file/test_file_add_symbol_import.py diff --git a/tests/unit/typescript/file/test_file_editable.py b/tests/unit/codegen/sdk/typescript/file/test_file_editable.py similarity index 100% rename from tests/unit/typescript/file/test_file_editable.py rename to tests/unit/codegen/sdk/typescript/file/test_file_editable.py diff --git a/tests/unit/typescript/file/test_file_export_statements.py b/tests/unit/codegen/sdk/typescript/file/test_file_export_statements.py similarity index 100% rename from tests/unit/typescript/file/test_file_export_statements.py rename to tests/unit/codegen/sdk/typescript/file/test_file_export_statements.py diff --git a/tests/unit/typescript/file/test_file_get_config.py b/tests/unit/codegen/sdk/typescript/file/test_file_get_config.py similarity index 100% rename from tests/unit/typescript/file/test_file_get_config.py rename to tests/unit/codegen/sdk/typescript/file/test_file_get_config.py diff --git a/tests/unit/typescript/file/test_file_get_function.py b/tests/unit/codegen/sdk/typescript/file/test_file_get_function.py similarity index 100% rename from tests/unit/typescript/file/test_file_get_function.py rename to tests/unit/codegen/sdk/typescript/file/test_file_get_function.py diff --git a/tests/unit/typescript/file/test_file_get_function_calls.py b/tests/unit/codegen/sdk/typescript/file/test_file_get_function_calls.py similarity index 100% rename from tests/unit/typescript/file/test_file_get_function_calls.py rename to tests/unit/codegen/sdk/typescript/file/test_file_get_function_calls.py diff --git a/tests/unit/typescript/file/test_file_get_global_var.py b/tests/unit/codegen/sdk/typescript/file/test_file_get_global_var.py similarity index 100% rename from tests/unit/typescript/file/test_file_get_global_var.py rename to tests/unit/codegen/sdk/typescript/file/test_file_get_global_var.py diff --git a/tests/unit/typescript/file/test_file_get_import_string.py b/tests/unit/codegen/sdk/typescript/file/test_file_get_import_string.py similarity index 100% rename from tests/unit/typescript/file/test_file_get_import_string.py rename to tests/unit/codegen/sdk/typescript/file/test_file_get_import_string.py diff --git a/tests/unit/typescript/file/test_file_get_symbol.py b/tests/unit/codegen/sdk/typescript/file/test_file_get_symbol.py similarity index 100% rename from tests/unit/typescript/file/test_file_get_symbol.py rename to tests/unit/codegen/sdk/typescript/file/test_file_get_symbol.py diff --git a/tests/unit/typescript/file/test_file_global_call.py b/tests/unit/codegen/sdk/typescript/file/test_file_global_call.py similarity index 100% rename from tests/unit/typescript/file/test_file_global_call.py rename to tests/unit/codegen/sdk/typescript/file/test_file_global_call.py diff --git a/tests/unit/typescript/file/test_file_global_vars.py b/tests/unit/codegen/sdk/typescript/file/test_file_global_vars.py similarity index 100% rename from tests/unit/typescript/file/test_file_global_vars.py rename to tests/unit/codegen/sdk/typescript/file/test_file_global_vars.py diff --git a/tests/unit/typescript/file/test_file_graph.py b/tests/unit/codegen/sdk/typescript/file/test_file_graph.py similarity index 100% rename from tests/unit/typescript/file/test_file_graph.py rename to tests/unit/codegen/sdk/typescript/file/test_file_graph.py diff --git a/tests/unit/typescript/file/test_file_import_statemets.py b/tests/unit/codegen/sdk/typescript/file/test_file_import_statemets.py similarity index 100% rename from tests/unit/typescript/file/test_file_import_statemets.py rename to tests/unit/codegen/sdk/typescript/file/test_file_import_statemets.py diff --git a/tests/unit/typescript/file/test_file_imports.py b/tests/unit/codegen/sdk/typescript/file/test_file_imports.py similarity index 100% rename from tests/unit/typescript/file/test_file_imports.py rename to tests/unit/codegen/sdk/typescript/file/test_file_imports.py diff --git a/tests/unit/typescript/file/test_file_remove.py b/tests/unit/codegen/sdk/typescript/file/test_file_remove.py similarity index 100% rename from tests/unit/typescript/file/test_file_remove.py rename to tests/unit/codegen/sdk/typescript/file/test_file_remove.py diff --git a/tests/unit/typescript/file/test_file_statements.py b/tests/unit/codegen/sdk/typescript/file/test_file_statements.py similarity index 100% rename from tests/unit/typescript/file/test_file_statements.py rename to tests/unit/codegen/sdk/typescript/file/test_file_statements.py diff --git a/tests/unit/typescript/file/test_file_symbols.py b/tests/unit/codegen/sdk/typescript/file/test_file_symbols.py similarity index 100% rename from tests/unit/typescript/file/test_file_symbols.py rename to tests/unit/codegen/sdk/typescript/file/test_file_symbols.py diff --git a/tests/unit/typescript/file/test_file_unicode.py b/tests/unit/codegen/sdk/typescript/file/test_file_unicode.py similarity index 100% rename from tests/unit/typescript/file/test_file_unicode.py rename to tests/unit/codegen/sdk/typescript/file/test_file_unicode.py diff --git a/tests/unit/typescript/file/test_file_update_filepath.py b/tests/unit/codegen/sdk/typescript/file/test_file_update_filepath.py similarity index 100% rename from tests/unit/typescript/file/test_file_update_filepath.py rename to tests/unit/codegen/sdk/typescript/file/test_file_update_filepath.py diff --git a/tests/unit/typescript/file/test_ts_config_properties.py b/tests/unit/codegen/sdk/typescript/file/test_ts_config_properties.py similarity index 100% rename from tests/unit/typescript/file/test_ts_config_properties.py rename to tests/unit/codegen/sdk/typescript/file/test_ts_config_properties.py diff --git a/tests/unit/typescript/function/test_function_arrow.py b/tests/unit/codegen/sdk/typescript/function/test_function_arrow.py similarity index 100% rename from tests/unit/typescript/function/test_function_arrow.py rename to tests/unit/codegen/sdk/typescript/function/test_function_arrow.py diff --git a/tests/unit/typescript/function/test_function_assignments.py b/tests/unit/codegen/sdk/typescript/function/test_function_assignments.py similarity index 100% rename from tests/unit/typescript/function/test_function_assignments.py rename to tests/unit/codegen/sdk/typescript/function/test_function_assignments.py diff --git a/tests/unit/typescript/function/test_function_async.py b/tests/unit/codegen/sdk/typescript/function/test_function_async.py similarity index 100% rename from tests/unit/typescript/function/test_function_async.py rename to tests/unit/codegen/sdk/typescript/function/test_function_async.py diff --git a/tests/unit/typescript/function/test_function_call_sites.py b/tests/unit/codegen/sdk/typescript/function/test_function_call_sites.py similarity index 100% rename from tests/unit/typescript/function/test_function_call_sites.py rename to tests/unit/codegen/sdk/typescript/function/test_function_call_sites.py diff --git a/tests/unit/typescript/function/test_function_calls_from_symbol.py b/tests/unit/codegen/sdk/typescript/function/test_function_calls_from_symbol.py similarity index 100% rename from tests/unit/typescript/function/test_function_calls_from_symbol.py rename to tests/unit/codegen/sdk/typescript/function/test_function_calls_from_symbol.py diff --git a/tests/unit/typescript/function/test_function_code_block.py b/tests/unit/codegen/sdk/typescript/function/test_function_code_block.py similarity index 100% rename from tests/unit/typescript/function/test_function_code_block.py rename to tests/unit/codegen/sdk/typescript/function/test_function_code_block.py diff --git a/tests/unit/typescript/function/test_function_comment.py b/tests/unit/codegen/sdk/typescript/function/test_function_comment.py similarity index 100% rename from tests/unit/typescript/function/test_function_comment.py rename to tests/unit/codegen/sdk/typescript/function/test_function_comment.py diff --git a/tests/unit/typescript/function/test_function_decorators.py b/tests/unit/codegen/sdk/typescript/function/test_function_decorators.py similarity index 100% rename from tests/unit/typescript/function/test_function_decorators.py rename to tests/unit/codegen/sdk/typescript/function/test_function_decorators.py diff --git a/tests/unit/typescript/function/test_function_dependencies.py b/tests/unit/codegen/sdk/typescript/function/test_function_dependencies.py similarity index 100% rename from tests/unit/typescript/function/test_function_dependencies.py rename to tests/unit/codegen/sdk/typescript/function/test_function_dependencies.py diff --git a/tests/unit/typescript/function/test_function_docstring.py b/tests/unit/codegen/sdk/typescript/function/test_function_docstring.py similarity index 100% rename from tests/unit/typescript/function/test_function_docstring.py rename to tests/unit/codegen/sdk/typescript/function/test_function_docstring.py diff --git a/tests/unit/typescript/function/test_function_function_calls.py b/tests/unit/codegen/sdk/typescript/function/test_function_function_calls.py similarity index 100% rename from tests/unit/typescript/function/test_function_function_calls.py rename to tests/unit/codegen/sdk/typescript/function/test_function_function_calls.py diff --git a/tests/unit/typescript/function/test_function_function_declaration_docstring.py b/tests/unit/codegen/sdk/typescript/function/test_function_function_declaration_docstring.py similarity index 100% rename from tests/unit/typescript/function/test_function_function_declaration_docstring.py rename to tests/unit/codegen/sdk/typescript/function/test_function_function_declaration_docstring.py diff --git a/tests/unit/typescript/function/test_function_get_import_string.py b/tests/unit/codegen/sdk/typescript/function/test_function_get_import_string.py similarity index 100% rename from tests/unit/typescript/function/test_function_get_import_string.py rename to tests/unit/codegen/sdk/typescript/function/test_function_get_import_string.py diff --git a/tests/unit/typescript/function/test_function_get_parameter_by_index.py b/tests/unit/codegen/sdk/typescript/function/test_function_get_parameter_by_index.py similarity index 100% rename from tests/unit/typescript/function/test_function_get_parameter_by_index.py rename to tests/unit/codegen/sdk/typescript/function/test_function_get_parameter_by_index.py diff --git a/tests/unit/typescript/function/test_function_is_exported.py b/tests/unit/codegen/sdk/typescript/function/test_function_is_exported.py similarity index 100% rename from tests/unit/typescript/function/test_function_is_exported.py rename to tests/unit/codegen/sdk/typescript/function/test_function_is_exported.py diff --git a/tests/unit/typescript/function/test_function_is_reexported.py b/tests/unit/codegen/sdk/typescript/function/test_function_is_reexported.py similarity index 100% rename from tests/unit/typescript/function/test_function_is_reexported.py rename to tests/unit/codegen/sdk/typescript/function/test_function_is_reexported.py diff --git a/tests/unit/typescript/function/test_function_jsx.py b/tests/unit/codegen/sdk/typescript/function/test_function_jsx.py similarity index 100% rename from tests/unit/typescript/function/test_function_jsx.py rename to tests/unit/codegen/sdk/typescript/function/test_function_jsx.py diff --git a/tests/unit/typescript/function/test_function_level.py b/tests/unit/codegen/sdk/typescript/function/test_function_level.py similarity index 100% rename from tests/unit/typescript/function/test_function_level.py rename to tests/unit/codegen/sdk/typescript/function/test_function_level.py diff --git a/tests/unit/typescript/function/test_function_move_to_file.py b/tests/unit/codegen/sdk/typescript/function/test_function_move_to_file.py similarity index 100% rename from tests/unit/typescript/function/test_function_move_to_file.py rename to tests/unit/codegen/sdk/typescript/function/test_function_move_to_file.py diff --git a/tests/unit/typescript/function/test_function_nested_functions.py b/tests/unit/codegen/sdk/typescript/function/test_function_nested_functions.py similarity index 100% rename from tests/unit/typescript/function/test_function_nested_functions.py rename to tests/unit/codegen/sdk/typescript/function/test_function_nested_functions.py diff --git a/tests/unit/typescript/function/test_function_parameter_to_interface.py b/tests/unit/codegen/sdk/typescript/function/test_function_parameter_to_interface.py similarity index 100% rename from tests/unit/typescript/function/test_function_parameter_to_interface.py rename to tests/unit/codegen/sdk/typescript/function/test_function_parameter_to_interface.py diff --git a/tests/unit/typescript/function/test_function_parameters.py b/tests/unit/codegen/sdk/typescript/function/test_function_parameters.py similarity index 100% rename from tests/unit/typescript/function/test_function_parameters.py rename to tests/unit/codegen/sdk/typescript/function/test_function_parameters.py diff --git a/tests/unit/typescript/function/test_function_prepend_statements.py b/tests/unit/codegen/sdk/typescript/function/test_function_prepend_statements.py similarity index 100% rename from tests/unit/typescript/function/test_function_prepend_statements.py rename to tests/unit/codegen/sdk/typescript/function/test_function_prepend_statements.py diff --git a/tests/unit/typescript/function/test_function_rename.py b/tests/unit/codegen/sdk/typescript/function/test_function_rename.py similarity index 100% rename from tests/unit/typescript/function/test_function_rename.py rename to tests/unit/codegen/sdk/typescript/function/test_function_rename.py diff --git a/tests/unit/typescript/function/test_function_return_statements.py b/tests/unit/codegen/sdk/typescript/function/test_function_return_statements.py similarity index 100% rename from tests/unit/typescript/function/test_function_return_statements.py rename to tests/unit/codegen/sdk/typescript/function/test_function_return_statements.py diff --git a/tests/unit/typescript/function/test_function_return_type_annotation.py b/tests/unit/codegen/sdk/typescript/function/test_function_return_type_annotation.py similarity index 100% rename from tests/unit/typescript/function/test_function_return_type_annotation.py rename to tests/unit/codegen/sdk/typescript/function/test_function_return_type_annotation.py diff --git a/tests/unit/typescript/function/test_function_set_docstring.py b/tests/unit/codegen/sdk/typescript/function/test_function_set_docstring.py similarity index 100% rename from tests/unit/typescript/function/test_function_set_docstring.py rename to tests/unit/codegen/sdk/typescript/function/test_function_set_docstring.py diff --git a/tests/unit/typescript/function/test_function_set_return_type.py b/tests/unit/codegen/sdk/typescript/function/test_function_set_return_type.py similarity index 100% rename from tests/unit/typescript/function/test_function_set_return_type.py rename to tests/unit/codegen/sdk/typescript/function/test_function_set_return_type.py diff --git a/tests/unit/typescript/function/test_function_usages.py b/tests/unit/codegen/sdk/typescript/function/test_function_usages.py similarity index 100% rename from tests/unit/typescript/function/test_function_usages.py rename to tests/unit/codegen/sdk/typescript/function/test_function_usages.py diff --git a/tests/unit/typescript/file/__init__.py b/tests/unit/codegen/sdk/typescript/global_var/__init__.py similarity index 100% rename from tests/unit/typescript/file/__init__.py rename to tests/unit/codegen/sdk/typescript/global_var/__init__.py diff --git a/tests/unit/typescript/global_var/test_global_var_comment.py b/tests/unit/codegen/sdk/typescript/global_var/test_global_var_comment.py similarity index 100% rename from tests/unit/typescript/global_var/test_global_var_comment.py rename to tests/unit/codegen/sdk/typescript/global_var/test_global_var_comment.py diff --git a/tests/unit/typescript/global_var/test_global_var_dependencies.py b/tests/unit/codegen/sdk/typescript/global_var/test_global_var_dependencies.py similarity index 100% rename from tests/unit/typescript/global_var/test_global_var_dependencies.py rename to tests/unit/codegen/sdk/typescript/global_var/test_global_var_dependencies.py diff --git a/tests/unit/typescript/global_var/test_global_var_get_import_string.py b/tests/unit/codegen/sdk/typescript/global_var/test_global_var_get_import_string.py similarity index 100% rename from tests/unit/typescript/global_var/test_global_var_get_import_string.py rename to tests/unit/codegen/sdk/typescript/global_var/test_global_var_get_import_string.py diff --git a/tests/unit/typescript/global_var/test_global_var_has_value.py b/tests/unit/codegen/sdk/typescript/global_var/test_global_var_has_value.py similarity index 100% rename from tests/unit/typescript/global_var/test_global_var_has_value.py rename to tests/unit/codegen/sdk/typescript/global_var/test_global_var_has_value.py diff --git a/tests/unit/typescript/global_var/test_global_var_inline_comment.py b/tests/unit/codegen/sdk/typescript/global_var/test_global_var_inline_comment.py similarity index 100% rename from tests/unit/typescript/global_var/test_global_var_inline_comment.py rename to tests/unit/codegen/sdk/typescript/global_var/test_global_var_inline_comment.py diff --git a/tests/unit/typescript/global_var/test_global_var_is_exported.py b/tests/unit/codegen/sdk/typescript/global_var/test_global_var_is_exported.py similarity index 100% rename from tests/unit/typescript/global_var/test_global_var_is_exported.py rename to tests/unit/codegen/sdk/typescript/global_var/test_global_var_is_exported.py diff --git a/tests/unit/typescript/global_var/test_global_var_move_to_file.py b/tests/unit/codegen/sdk/typescript/global_var/test_global_var_move_to_file.py similarity index 100% rename from tests/unit/typescript/global_var/test_global_var_move_to_file.py rename to tests/unit/codegen/sdk/typescript/global_var/test_global_var_move_to_file.py diff --git a/tests/unit/typescript/global_var/test_global_var_parsing.py b/tests/unit/codegen/sdk/typescript/global_var/test_global_var_parsing.py similarity index 100% rename from tests/unit/typescript/global_var/test_global_var_parsing.py rename to tests/unit/codegen/sdk/typescript/global_var/test_global_var_parsing.py diff --git a/tests/unit/typescript/global_var/test_global_var_rename.py b/tests/unit/codegen/sdk/typescript/global_var/test_global_var_rename.py similarity index 100% rename from tests/unit/typescript/global_var/test_global_var_rename.py rename to tests/unit/codegen/sdk/typescript/global_var/test_global_var_rename.py diff --git a/tests/unit/typescript/global_var/test_global_var_special.py b/tests/unit/codegen/sdk/typescript/global_var/test_global_var_special.py similarity index 100% rename from tests/unit/typescript/global_var/test_global_var_special.py rename to tests/unit/codegen/sdk/typescript/global_var/test_global_var_special.py diff --git a/tests/unit/typescript/import_resolution/test_has_import.py b/tests/unit/codegen/sdk/typescript/import_resolution/test_has_import.py similarity index 100% rename from tests/unit/typescript/import_resolution/test_has_import.py rename to tests/unit/codegen/sdk/typescript/import_resolution/test_has_import.py diff --git a/tests/unit/typescript/import_resolution/test_import_from_export_statement.py b/tests/unit/codegen/sdk/typescript/import_resolution/test_import_from_export_statement.py similarity index 100% rename from tests/unit/typescript/import_resolution/test_import_from_export_statement.py rename to tests/unit/codegen/sdk/typescript/import_resolution/test_import_from_export_statement.py diff --git a/tests/unit/typescript/import_resolution/test_import_resolution_get_import_string.py b/tests/unit/codegen/sdk/typescript/import_resolution/test_import_resolution_get_import_string.py similarity index 100% rename from tests/unit/typescript/import_resolution/test_import_resolution_get_import_string.py rename to tests/unit/codegen/sdk/typescript/import_resolution/test_import_resolution_get_import_string.py diff --git a/tests/unit/typescript/import_resolution/test_import_resolution_remove.py b/tests/unit/codegen/sdk/typescript/import_resolution/test_import_resolution_remove.py similarity index 100% rename from tests/unit/typescript/import_resolution/test_import_resolution_remove.py rename to tests/unit/codegen/sdk/typescript/import_resolution/test_import_resolution_remove.py diff --git a/tests/unit/typescript/import_resolution/test_import_resolution_rename.py b/tests/unit/codegen/sdk/typescript/import_resolution/test_import_resolution_rename.py similarity index 100% rename from tests/unit/typescript/import_resolution/test_import_resolution_rename.py rename to tests/unit/codegen/sdk/typescript/import_resolution/test_import_resolution_rename.py diff --git a/tests/unit/typescript/import_resolution/test_import_resolution_resolve_import.py b/tests/unit/codegen/sdk/typescript/import_resolution/test_import_resolution_resolve_import.py similarity index 100% rename from tests/unit/typescript/import_resolution/test_import_resolution_resolve_import.py rename to tests/unit/codegen/sdk/typescript/import_resolution/test_import_resolution_resolve_import.py diff --git a/tests/unit/typescript/import_resolution/test_import_resolution_set_import_module.py b/tests/unit/codegen/sdk/typescript/import_resolution/test_import_resolution_set_import_module.py similarity index 100% rename from tests/unit/typescript/import_resolution/test_import_resolution_set_import_module.py rename to tests/unit/codegen/sdk/typescript/import_resolution/test_import_resolution_set_import_module.py diff --git a/tests/unit/typescript/import_resolution/test_import_resolution_set_import_symbol_alias.py b/tests/unit/codegen/sdk/typescript/import_resolution/test_import_resolution_set_import_symbol_alias.py similarity index 100% rename from tests/unit/typescript/import_resolution/test_import_resolution_set_import_symbol_alias.py rename to tests/unit/codegen/sdk/typescript/import_resolution/test_import_resolution_set_import_symbol_alias.py diff --git a/tests/unit/typescript/interface/test_interface_attributes.py b/tests/unit/codegen/sdk/typescript/interface/test_interface_attributes.py similarity index 100% rename from tests/unit/typescript/interface/test_interface_attributes.py rename to tests/unit/codegen/sdk/typescript/interface/test_interface_attributes.py diff --git a/tests/unit/typescript/interface/test_interface_dependencies.py b/tests/unit/codegen/sdk/typescript/interface/test_interface_dependencies.py similarity index 100% rename from tests/unit/typescript/interface/test_interface_dependencies.py rename to tests/unit/codegen/sdk/typescript/interface/test_interface_dependencies.py diff --git a/tests/unit/typescript/interface/test_interface_get_attribute.py b/tests/unit/codegen/sdk/typescript/interface/test_interface_get_attribute.py similarity index 100% rename from tests/unit/typescript/interface/test_interface_get_attribute.py rename to tests/unit/codegen/sdk/typescript/interface/test_interface_get_attribute.py diff --git a/tests/unit/typescript/interface/test_interface_parents.py b/tests/unit/codegen/sdk/typescript/interface/test_interface_parents.py similarity index 100% rename from tests/unit/typescript/interface/test_interface_parents.py rename to tests/unit/codegen/sdk/typescript/interface/test_interface_parents.py diff --git a/tests/unit/typescript/language_engine/test_node_engine.py b/tests/unit/codegen/sdk/typescript/language_engine/test_node_engine.py similarity index 100% rename from tests/unit/typescript/language_engine/test_node_engine.py rename to tests/unit/codegen/sdk/typescript/language_engine/test_node_engine.py diff --git a/tests/unit/typescript/language_engine/test_v8_engine.py b/tests/unit/codegen/sdk/typescript/language_engine/test_v8_engine.py similarity index 100% rename from tests/unit/typescript/language_engine/test_v8_engine.py rename to tests/unit/codegen/sdk/typescript/language_engine/test_v8_engine.py diff --git a/tests/unit/typescript/move_symbol_to_file/test_move_tsx_to_file.py b/tests/unit/codegen/sdk/typescript/move_symbol_to_file/test_move_tsx_to_file.py similarity index 100% rename from tests/unit/typescript/move_symbol_to_file/test_move_tsx_to_file.py rename to tests/unit/codegen/sdk/typescript/move_symbol_to_file/test_move_tsx_to_file.py diff --git a/tests/unit/typescript/namespace/test_namespace.py b/tests/unit/codegen/sdk/typescript/namespace/test_namespace.py similarity index 100% rename from tests/unit/typescript/namespace/test_namespace.py rename to tests/unit/codegen/sdk/typescript/namespace/test_namespace.py diff --git a/tests/unit/typescript/namespace/test_namespace_complex_examples.py b/tests/unit/codegen/sdk/typescript/namespace/test_namespace_complex_examples.py similarity index 100% rename from tests/unit/typescript/namespace/test_namespace_complex_examples.py rename to tests/unit/codegen/sdk/typescript/namespace/test_namespace_complex_examples.py diff --git a/tests/unit/typescript/react/test_interface_props.py b/tests/unit/codegen/sdk/typescript/react/test_interface_props.py similarity index 100% rename from tests/unit/typescript/react/test_interface_props.py rename to tests/unit/codegen/sdk/typescript/react/test_interface_props.py diff --git a/tests/unit/typescript/react/test_ts_declassify.py b/tests/unit/codegen/sdk/typescript/react/test_ts_declassify.py similarity index 100% rename from tests/unit/typescript/react/test_ts_declassify.py rename to tests/unit/codegen/sdk/typescript/react/test_ts_declassify.py diff --git a/tests/unit/typescript/global_var/__init__.py b/tests/unit/codegen/sdk/typescript/statements/__init__.py similarity index 100% rename from tests/unit/typescript/global_var/__init__.py rename to tests/unit/codegen/sdk/typescript/statements/__init__.py diff --git a/tests/unit/typescript/statements/__init__.py b/tests/unit/codegen/sdk/typescript/statements/assignment_statement/__init__.py similarity index 100% rename from tests/unit/typescript/statements/__init__.py rename to tests/unit/codegen/sdk/typescript/statements/assignment_statement/__init__.py diff --git a/tests/unit/typescript/statements/assignment_statement/test_assignment_statement_get_local_usages.py b/tests/unit/codegen/sdk/typescript/statements/assignment_statement/test_assignment_statement_get_local_usages.py similarity index 100% rename from tests/unit/typescript/statements/assignment_statement/test_assignment_statement_get_local_usages.py rename to tests/unit/codegen/sdk/typescript/statements/assignment_statement/test_assignment_statement_get_local_usages.py diff --git a/tests/unit/typescript/statements/assignment_statement/test_assignment_statement_get_variable_usages.py b/tests/unit/codegen/sdk/typescript/statements/assignment_statement/test_assignment_statement_get_variable_usages.py similarity index 100% rename from tests/unit/typescript/statements/assignment_statement/test_assignment_statement_get_variable_usages.py rename to tests/unit/codegen/sdk/typescript/statements/assignment_statement/test_assignment_statement_get_variable_usages.py diff --git a/tests/unit/typescript/statements/assignment_statement/test_assignment_statement_type_annotation.py b/tests/unit/codegen/sdk/typescript/statements/assignment_statement/test_assignment_statement_type_annotation.py similarity index 100% rename from tests/unit/typescript/statements/assignment_statement/test_assignment_statement_type_annotation.py rename to tests/unit/codegen/sdk/typescript/statements/assignment_statement/test_assignment_statement_type_annotation.py diff --git a/tests/unit/typescript/statements/assignment_statement/test_assignment_statement_type_resolution.py b/tests/unit/codegen/sdk/typescript/statements/assignment_statement/test_assignment_statement_type_resolution.py similarity index 100% rename from tests/unit/typescript/statements/assignment_statement/test_assignment_statement_type_resolution.py rename to tests/unit/codegen/sdk/typescript/statements/assignment_statement/test_assignment_statement_type_resolution.py diff --git a/tests/unit/typescript/statements/assignment_statement/__init__.py b/tests/unit/codegen/sdk/typescript/statements/attribute/__init__.py similarity index 100% rename from tests/unit/typescript/statements/assignment_statement/__init__.py rename to tests/unit/codegen/sdk/typescript/statements/attribute/__init__.py diff --git a/tests/unit/typescript/statements/attribute/test_attribute_get_local_usages.py b/tests/unit/codegen/sdk/typescript/statements/attribute/test_attribute_get_local_usages.py similarity index 100% rename from tests/unit/typescript/statements/attribute/test_attribute_get_local_usages.py rename to tests/unit/codegen/sdk/typescript/statements/attribute/test_attribute_get_local_usages.py diff --git a/tests/unit/typescript/statements/attribute/test_attribute_properties.py b/tests/unit/codegen/sdk/typescript/statements/attribute/test_attribute_properties.py similarity index 100% rename from tests/unit/typescript/statements/attribute/test_attribute_properties.py rename to tests/unit/codegen/sdk/typescript/statements/attribute/test_attribute_properties.py diff --git a/tests/unit/typescript/statements/attribute/test_attribute_rename.py b/tests/unit/codegen/sdk/typescript/statements/attribute/test_attribute_rename.py similarity index 100% rename from tests/unit/typescript/statements/attribute/test_attribute_rename.py rename to tests/unit/codegen/sdk/typescript/statements/attribute/test_attribute_rename.py diff --git a/tests/unit/typescript/statements/attribute/test_attribute_set_type_annotation.py b/tests/unit/codegen/sdk/typescript/statements/attribute/test_attribute_set_type_annotation.py similarity index 100% rename from tests/unit/typescript/statements/attribute/test_attribute_set_type_annotation.py rename to tests/unit/codegen/sdk/typescript/statements/attribute/test_attribute_set_type_annotation.py diff --git a/tests/unit/typescript/statements/attribute/__init__.py b/tests/unit/codegen/sdk/typescript/statements/for_loop_statement/__init__.py similarity index 100% rename from tests/unit/typescript/statements/attribute/__init__.py rename to tests/unit/codegen/sdk/typescript/statements/for_loop_statement/__init__.py diff --git a/tests/unit/typescript/statements/for_loop_statement/test_for_loop_statement.py b/tests/unit/codegen/sdk/typescript/statements/for_loop_statement/test_for_loop_statement.py similarity index 100% rename from tests/unit/typescript/statements/for_loop_statement/test_for_loop_statement.py rename to tests/unit/codegen/sdk/typescript/statements/for_loop_statement/test_for_loop_statement.py diff --git a/tests/unit/typescript/statements/for_loop_statement/__init__.py b/tests/unit/codegen/sdk/typescript/statements/if_block_statement/__init__.py similarity index 100% rename from tests/unit/typescript/statements/for_loop_statement/__init__.py rename to tests/unit/codegen/sdk/typescript/statements/if_block_statement/__init__.py diff --git a/tests/unit/typescript/statements/if_block_statement/test_if_block_reduce_block.py b/tests/unit/codegen/sdk/typescript/statements/if_block_statement/test_if_block_reduce_block.py similarity index 100% rename from tests/unit/typescript/statements/if_block_statement/test_if_block_reduce_block.py rename to tests/unit/codegen/sdk/typescript/statements/if_block_statement/test_if_block_reduce_block.py diff --git a/tests/unit/typescript/statements/if_block_statement/test_if_block_statement_properties.py b/tests/unit/codegen/sdk/typescript/statements/if_block_statement/test_if_block_statement_properties.py similarity index 100% rename from tests/unit/typescript/statements/if_block_statement/test_if_block_statement_properties.py rename to tests/unit/codegen/sdk/typescript/statements/if_block_statement/test_if_block_statement_properties.py diff --git a/tests/unit/typescript/statements/if_block_statement/__init__.py b/tests/unit/codegen/sdk/typescript/statements/statement/__init__.py similarity index 100% rename from tests/unit/typescript/statements/if_block_statement/__init__.py rename to tests/unit/codegen/sdk/typescript/statements/statement/__init__.py diff --git a/tests/unit/typescript/statements/statement/test_statement_get_variable_usages.py b/tests/unit/codegen/sdk/typescript/statements/statement/test_statement_get_variable_usages.py similarity index 100% rename from tests/unit/typescript/statements/statement/test_statement_get_variable_usages.py rename to tests/unit/codegen/sdk/typescript/statements/statement/test_statement_get_variable_usages.py diff --git a/tests/unit/typescript/statements/switch_statement/test_switch_statement.py b/tests/unit/codegen/sdk/typescript/statements/switch_statement/test_switch_statement.py similarity index 100% rename from tests/unit/typescript/statements/switch_statement/test_switch_statement.py rename to tests/unit/codegen/sdk/typescript/statements/switch_statement/test_switch_statement.py diff --git a/tests/unit/typescript/statements/statement/__init__.py b/tests/unit/codegen/sdk/typescript/statements/try_catch_statement/__init__.py similarity index 100% rename from tests/unit/typescript/statements/statement/__init__.py rename to tests/unit/codegen/sdk/typescript/statements/try_catch_statement/__init__.py diff --git a/tests/unit/typescript/statements/try_catch_statement/test_try_catch_statement.py b/tests/unit/codegen/sdk/typescript/statements/try_catch_statement/test_try_catch_statement.py similarity index 100% rename from tests/unit/typescript/statements/try_catch_statement/test_try_catch_statement.py rename to tests/unit/codegen/sdk/typescript/statements/try_catch_statement/test_try_catch_statement.py diff --git a/tests/unit/typescript/statements/try_catch_statement/__init__.py b/tests/unit/codegen/sdk/typescript/statements/while_statement/__init__.py similarity index 100% rename from tests/unit/typescript/statements/try_catch_statement/__init__.py rename to tests/unit/codegen/sdk/typescript/statements/while_statement/__init__.py diff --git a/tests/unit/typescript/statements/while_statement/test_while_statement.py b/tests/unit/codegen/sdk/typescript/statements/while_statement/test_while_statement.py similarity index 100% rename from tests/unit/typescript/statements/while_statement/test_while_statement.py rename to tests/unit/codegen/sdk/typescript/statements/while_statement/test_while_statement.py diff --git a/tests/unit/typescript/test_print.py b/tests/unit/codegen/sdk/typescript/test_print.py similarity index 100% rename from tests/unit/typescript/test_print.py rename to tests/unit/codegen/sdk/typescript/test_print.py diff --git a/tests/unit/typescript/tsx/test_tsx_edit.py b/tests/unit/codegen/sdk/typescript/tsx/test_tsx_edit.py similarity index 100% rename from tests/unit/typescript/tsx/test_tsx_edit.py rename to tests/unit/codegen/sdk/typescript/tsx/test_tsx_edit.py diff --git a/tests/unit/typescript/tsx/test_tsx_parsing.py b/tests/unit/codegen/sdk/typescript/tsx/test_tsx_parsing.py similarity index 100% rename from tests/unit/typescript/tsx/test_tsx_parsing.py rename to tests/unit/codegen/sdk/typescript/tsx/test_tsx_parsing.py diff --git a/tests/unit/typescript/type/test_type_attributes.py b/tests/unit/codegen/sdk/typescript/type/test_type_attributes.py similarity index 100% rename from tests/unit/typescript/type/test_type_attributes.py rename to tests/unit/codegen/sdk/typescript/type/test_type_attributes.py diff --git a/tests/unit/typescript/type/test_type_dependencies.py b/tests/unit/codegen/sdk/typescript/type/test_type_dependencies.py similarity index 100% rename from tests/unit/typescript/type/test_type_dependencies.py rename to tests/unit/codegen/sdk/typescript/type/test_type_dependencies.py diff --git a/tests/unit/test_imports.py b/tests/unit/codegen/test_imports.py similarity index 100% rename from tests/unit/test_imports.py rename to tests/unit/codegen/test_imports.py diff --git a/tests/unit/test_codemod.py b/tests/unit/codemods/test_codemod.py similarity index 89% rename from tests/unit/test_codemod.py rename to tests/unit/codemods/test_codemod.py index 8281b8960..a9e7b1949 100644 --- a/tests/unit/test_codemod.py +++ b/tests/unit/codemods/test_codemod.py @@ -1,5 +1,5 @@ from codegen.sdk.core.codebase import Codebase -from codemods.canonical.codemod import Codemod +from codemods.codemod import Codemod def test_codemod_execute(): diff --git a/tests/unit/output/snapshots/test_ast/test_ast_basic/ast.json b/tests/unit/output/snapshots/test_ast/test_ast_basic/ast.json deleted file mode 100644 index 1d7784baf..000000000 --- a/tests/unit/output/snapshots/test_ast/test_ast_basic/ast.json +++ /dev/null @@ -1,327 +0,0 @@ -{ - "codegen_sdk_type": "PyClass", - "span": { - "range": { - "start_byte": 1, - "end_byte": 48, - "start_point": { - "row": 1, - "column": 0 - }, - "end_point": { - "row": 3, - "column": 18 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "class_definition", - "children": [ - [ - "get_name()", - { - "codegen_sdk_type": "Name", - "span": { - "range": { - "start_byte": 7, - "end_byte": 10, - "start_point": { - "row": 1, - "column": 6 - }, - "end_point": { - "row": 1, - "column": 9 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "identifier", - "children": [] - } - ], - [ - "methods", - { - "codegen_sdk_type": "PyCodeBlock", - "span": { - "range": { - "start_byte": 16, - "end_byte": 48, - "start_point": { - "row": 2, - "column": 4 - }, - "end_point": { - "row": 3, - "column": 18 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "block", - "children": [ - [ - "statements", - { - "codegen_sdk_type": "MultiLineCollection", - "span": { - "range": { - "start_byte": 16, - "end_byte": 48, - "start_point": { - "row": 2, - "column": 4 - }, - "end_point": { - "row": 3, - "column": 18 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "block", - "children": [ - [ - null, - { - "codegen_sdk_type": "SymbolStatement", - "span": { - "range": { - "start_byte": 16, - "end_byte": 48, - "start_point": { - "row": 2, - "column": 4 - }, - "end_point": { - "row": 3, - "column": 18 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "function_definition", - "children": [ - [ - null, - { - "codegen_sdk_type": "Name", - "span": { - "range": { - "start_byte": 20, - "end_byte": 23, - "start_point": { - "row": 2, - "column": 8 - }, - "end_point": { - "row": 2, - "column": 11 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "identifier", - "children": [] - } - ], - [ - null, - { - "codegen_sdk_type": "Collection", - "span": { - "range": { - "start_byte": 23, - "end_byte": 28, - "start_point": { - "row": 2, - "column": 11 - }, - "end_point": { - "row": 2, - "column": 16 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "parameters", - "children": [ - [ - null, - { - "codegen_sdk_type": "PyParameter", - "span": { - "range": { - "start_byte": 24, - "end_byte": 27, - "start_point": { - "row": 2, - "column": 12 - }, - "end_point": { - "row": 2, - "column": 15 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "identifier", - "children": [] - } - ] - ] - } - ], - [ - null, - { - "codegen_sdk_type": "PyCodeBlock", - "span": { - "range": { - "start_byte": 38, - "end_byte": 48, - "start_point": { - "row": 3, - "column": 8 - }, - "end_point": { - "row": 3, - "column": 18 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "block", - "children": [ - [ - "statements", - { - "codegen_sdk_type": "MultiLineCollection", - "span": { - "range": { - "start_byte": 38, - "end_byte": 48, - "start_point": { - "row": 3, - "column": 8 - }, - "end_point": { - "row": 3, - "column": 18 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "block", - "children": [ - [ - null, - { - "codegen_sdk_type": "ReturnStatement", - "span": { - "range": { - "start_byte": 38, - "end_byte": 48, - "start_point": { - "row": 3, - "column": 8 - }, - "end_point": { - "row": 3, - "column": 18 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "return_statement", - "children": [ - [ - "value", - { - "codegen_sdk_type": "Name", - "span": { - "range": { - "start_byte": 45, - "end_byte": 48, - "start_point": { - "row": 3, - "column": 15 - }, - "end_point": { - "row": 3, - "column": 18 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "identifier", - "children": [] - } - ] - ] - } - ] - ] - } - ] - ] - } - ] - ] - } - ] - ] - } - ] - ] - } - ], - [ - null, - { - "codegen_sdk_type": "Name", - "span": { - "range": { - "start_byte": 20, - "end_byte": 23, - "start_point": { - "row": 2, - "column": 8 - }, - "end_point": { - "row": 2, - "column": 11 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "identifier", - "children": [] - } - ], - [ - null, - { - "codegen_sdk_type": "Name", - "span": { - "range": { - "start_byte": 24, - "end_byte": 27, - "start_point": { - "row": 2, - "column": 12 - }, - "end_point": { - "row": 2, - "column": 15 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "identifier", - "children": [] - } - ] - ] -} diff --git a/tests/unit/output/snapshots/test_ast/test_ast_nested/ast-nested.json b/tests/unit/output/snapshots/test_ast/test_ast_nested/ast-nested.json deleted file mode 100644 index 3079c70e1..000000000 --- a/tests/unit/output/snapshots/test_ast/test_ast_nested/ast-nested.json +++ /dev/null @@ -1,421 +0,0 @@ -{ - "codegen_sdk_type": "PyClass", - "span": { - "range": { - "start_byte": 1, - "end_byte": 66, - "start_point": { - "row": 1, - "column": 0 - }, - "end_point": { - "row": 4, - "column": 16 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "class_definition", - "children": [ - [ - "get_name()", - { - "codegen_sdk_type": "Name", - "span": { - "range": { - "start_byte": 7, - "end_byte": 10, - "start_point": { - "row": 1, - "column": 6 - }, - "end_point": { - "row": 1, - "column": 9 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "identifier", - "children": [] - } - ], - [ - "methods", - { - "codegen_sdk_type": "PyCodeBlock", - "span": { - "range": { - "start_byte": 16, - "end_byte": 66, - "start_point": { - "row": 2, - "column": 4 - }, - "end_point": { - "row": 4, - "column": 16 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "block", - "children": [ - [ - "statements", - { - "codegen_sdk_type": "MultiLineCollection", - "span": { - "range": { - "start_byte": 16, - "end_byte": 66, - "start_point": { - "row": 2, - "column": 4 - }, - "end_point": { - "row": 4, - "column": 16 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "block", - "children": [ - [ - null, - { - "codegen_sdk_type": "SymbolStatement", - "span": { - "range": { - "start_byte": 16, - "end_byte": 66, - "start_point": { - "row": 2, - "column": 4 - }, - "end_point": { - "row": 4, - "column": 16 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "class_definition", - "children": [ - [ - null, - { - "codegen_sdk_type": "Name", - "span": { - "range": { - "start_byte": 22, - "end_byte": 25, - "start_point": { - "row": 2, - "column": 10 - }, - "end_point": { - "row": 2, - "column": 13 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "identifier", - "children": [] - } - ], - [ - null, - { - "codegen_sdk_type": "PyCodeBlock", - "span": { - "range": { - "start_byte": 35, - "end_byte": 66, - "start_point": { - "row": 3, - "column": 8 - }, - "end_point": { - "row": 4, - "column": 16 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "block", - "children": [ - [ - "statements", - { - "codegen_sdk_type": "MultiLineCollection", - "span": { - "range": { - "start_byte": 35, - "end_byte": 66, - "start_point": { - "row": 3, - "column": 8 - }, - "end_point": { - "row": 4, - "column": 16 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "block", - "children": [ - [ - null, - { - "codegen_sdk_type": "SymbolStatement", - "span": { - "range": { - "start_byte": 35, - "end_byte": 66, - "start_point": { - "row": 3, - "column": 8 - }, - "end_point": { - "row": 4, - "column": 16 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "function_definition", - "children": [ - [ - null, - { - "codegen_sdk_type": "Name", - "span": { - "range": { - "start_byte": 39, - "end_byte": 42, - "start_point": { - "row": 3, - "column": 12 - }, - "end_point": { - "row": 3, - "column": 15 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "identifier", - "children": [] - } - ], - [ - null, - { - "codegen_sdk_type": "Collection", - "span": { - "range": { - "start_byte": 42, - "end_byte": 48, - "start_point": { - "row": 3, - "column": 15 - }, - "end_point": { - "row": 3, - "column": 21 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "parameters", - "children": [ - [ - null, - { - "codegen_sdk_type": "PyParameter", - "span": { - "range": { - "start_byte": 43, - "end_byte": 47, - "start_point": { - "row": 3, - "column": 16 - }, - "end_point": { - "row": 3, - "column": 20 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "identifier", - "children": [] - } - ] - ] - } - ], - [ - null, - { - "codegen_sdk_type": "PyCodeBlock", - "span": { - "range": { - "start_byte": 62, - "end_byte": 66, - "start_point": { - "row": 4, - "column": 12 - }, - "end_point": { - "row": 4, - "column": 16 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "block", - "children": [ - [ - "statements", - { - "codegen_sdk_type": "MultiLineCollection", - "span": { - "range": { - "start_byte": 62, - "end_byte": 66, - "start_point": { - "row": 4, - "column": 12 - }, - "end_point": { - "row": 4, - "column": 16 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "block", - "children": [ - [ - null, - { - "codegen_sdk_type": "PyPassStatement", - "span": { - "range": { - "start_byte": 62, - "end_byte": 66, - "start_point": { - "row": 4, - "column": 12 - }, - "end_point": { - "row": 4, - "column": 16 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "pass_statement", - "children": [] - } - ] - ] - } - ] - ] - } - ] - ] - } - ] - ] - } - ] - ] - } - ] - ] - } - ] - ] - } - ] - ] - } - ], - [ - null, - { - "codegen_sdk_type": "Name", - "span": { - "range": { - "start_byte": 22, - "end_byte": 25, - "start_point": { - "row": 2, - "column": 10 - }, - "end_point": { - "row": 2, - "column": 13 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "identifier", - "children": [] - } - ], - [ - null, - { - "codegen_sdk_type": "Name", - "span": { - "range": { - "start_byte": 39, - "end_byte": 42, - "start_point": { - "row": 3, - "column": 12 - }, - "end_point": { - "row": 3, - "column": 15 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "identifier", - "children": [] - } - ], - [ - null, - { - "codegen_sdk_type": "Name", - "span": { - "range": { - "start_byte": 43, - "end_byte": 47, - "start_point": { - "row": 3, - "column": 16 - }, - "end_point": { - "row": 3, - "column": 20 - } - }, - "filepath": "test.py" - }, - "tree_sitter_type": "identifier", - "children": [] - } - ] - ] -} diff --git a/tests/unit/typescript/statements/while_statement/__init__.py b/tests/unit/typescript/statements/while_statement/__init__.py deleted file mode 100644 index e69de29bb..000000000