From 782ee0af7258eed96d5029bcd2456e88ff980b6f Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Mon, 21 Oct 2024 06:57:48 -0400 Subject: [PATCH] refactor: organize convert test code files --- tests/{ => convert}/basic/repo.toml | 0 tests/{ => convert}/basic/task.json | 0 tests/{ => convert}/basic/task.toml | 0 tests/{ => convert}/conftest.py | 2 +- tests/{ => convert}/test_all_cases.py | 0 tests/{ => convert}/utils.py | 0 6 files changed, 1 insertion(+), 1 deletion(-) rename tests/{ => convert}/basic/repo.toml (100%) rename tests/{ => convert}/basic/task.json (100%) rename tests/{ => convert}/basic/task.toml (100%) rename tests/{ => convert}/conftest.py (94%) rename tests/{ => convert}/test_all_cases.py (100%) rename tests/{ => convert}/utils.py (100%) diff --git a/tests/basic/repo.toml b/tests/convert/basic/repo.toml similarity index 100% rename from tests/basic/repo.toml rename to tests/convert/basic/repo.toml diff --git a/tests/basic/task.json b/tests/convert/basic/task.json similarity index 100% rename from tests/basic/task.json rename to tests/convert/basic/task.json diff --git a/tests/basic/task.toml b/tests/convert/basic/task.toml similarity index 100% rename from tests/basic/task.toml rename to tests/convert/basic/task.toml diff --git a/tests/conftest.py b/tests/convert/conftest.py similarity index 94% rename from tests/conftest.py rename to tests/convert/conftest.py index 7d7d69b..542c2f9 100644 --- a/tests/conftest.py +++ b/tests/convert/conftest.py @@ -4,7 +4,7 @@ from typing import Any, List import pytest from joj3_config_generator.models import RepoConfig, TaskConfig -from tests.utils import read_convert_files +from tests.convert.utils import read_convert_files def get_test_cases() -> List[tuple[str, RepoConfig, TaskConfig, dict[str, Any]]]: diff --git a/tests/test_all_cases.py b/tests/convert/test_all_cases.py similarity index 100% rename from tests/test_all_cases.py rename to tests/convert/test_all_cases.py diff --git a/tests/utils.py b/tests/convert/utils.py similarity index 100% rename from tests/utils.py rename to tests/convert/utils.py