Skip to content

Commit

Permalink
Fixed mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
rquidute committed Nov 11, 2024
1 parent f2cb369 commit 303283d
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ def _init_test_suites(


def _parse_python_script_to_test_case_declarations(
python_test_version: str, tests_file_path: str
python_test_version: str, tests_file_path: Path
) -> list[PythonCaseDeclaration]:
python_tests: list[PythonTest] = parse_python_script(Path(tests_file_path))
python_tests: list[PythonTest] = parse_python_script(tests_file_path)

return [
PythonCaseDeclaration(
Expand All @@ -96,7 +96,7 @@ def _parse_python_script_to_test_case_declarations(


def __parse_python_tests(
python_test_version: str, mandatory: bool, tests_file_path: str
python_test_version: str, mandatory: bool, tests_file_path: Path
) -> list[PythonSuiteDeclaration]:
suites = _init_test_suites(python_test_version)

Expand All @@ -121,7 +121,7 @@ def __parse_python_tests(


def __sdk_python_test_collection(
name: str, python_test_folder: SDKTestFolder, mandatory: bool, tests_file_path: str
name: str, python_test_folder: SDKTestFolder, mandatory: bool, tests_file_path: Path
) -> PythonCollectionDeclaration:
collection = PythonCollectionDeclaration(
name=name, folder=python_test_folder, mandatory=mandatory
Expand All @@ -144,7 +144,7 @@ def __sdk_python_test_collection(

def sdk_python_test_collection(
python_test_folder: SDKTestFolder = SDK_PYTHON_TEST_FOLDER,
tests_file_path: str = PYTHON_TESTS_PARSED_FILE,
tests_file_path: Path = PYTHON_TESTS_PARSED_FILE,
) -> PythonCollectionDeclaration:
"""Declare a new collection of test suites."""
return __sdk_python_test_collection(
Expand All @@ -157,7 +157,7 @@ def sdk_python_test_collection(

def sdk_mandatory_python_test_collection(
python_test_folder: SDKTestFolder = SDK_PYTHON_TEST_FOLDER,
tests_file_path: str = PYTHON_TESTS_PARSED_FILE,
tests_file_path: Path = PYTHON_TESTS_PARSED_FILE,
) -> PythonCollectionDeclaration:
"""Declare a new collection of test suites."""
return __sdk_python_test_collection(
Expand Down

0 comments on commit 303283d

Please sign in to comment.