From f35d043163fed5e967ce4573681998d6f47e33d2 Mon Sep 17 00:00:00 2001 From: Romulo Quidute Filho Date: Mon, 4 Dec 2023 18:26:08 +0000 Subject: [PATCH] Updated unit tests --- app/tests/python_tests/test_sdk_python_collection.py | 10 +--------- app/tests/yaml_tests/test_sdk_yaml_collection.py | 5 +---- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/app/tests/python_tests/test_sdk_python_collection.py b/app/tests/python_tests/test_sdk_python_collection.py index b969fc37..7e157cae 100644 --- a/app/tests/python_tests/test_sdk_python_collection.py +++ b/app/tests/python_tests/test_sdk_python_collection.py @@ -49,15 +49,7 @@ def test_sdk_python_test_collection( ) -> None: assert python_test_collection.name == "SDK Python Tests" assert len(python_test_collection.test_suites.keys()) == 1 - - # test version number - test_sdk_python_version_path = ( - "/app/backend/app/tests/python_tests/test_python_script/.version" - ) - with open(test_sdk_python_version_path, "r") as version_file: - assert ( - python_test_collection.python_test_version == version_file.read().rstrip() - ) + assert python_test_collection.python_test_version == "unit-test-python-version" def test_automated_suite(python_test_collection: PythonCollectionDeclaration) -> None: diff --git a/app/tests/yaml_tests/test_sdk_yaml_collection.py b/app/tests/yaml_tests/test_sdk_yaml_collection.py index 71a88864..0c02fe2e 100644 --- a/app/tests/yaml_tests/test_sdk_yaml_collection.py +++ b/app/tests/yaml_tests/test_sdk_yaml_collection.py @@ -48,10 +48,7 @@ def test_sdk_yaml_collection( assert yaml_collection.name == "SDK YAML Tests" assert len(yaml_collection.test_suites.keys()) == 3 - # test version number - test_sdk_yaml_version_path = "/app/backend/app/tests/yaml_tests/test_yamls/.version" - with open(test_sdk_yaml_version_path, "r") as version_file: - assert yaml_collection.yaml_version == version_file.read().rstrip() + assert yaml_collection.yaml_version == "unit-test-yaml-version" def test_manual_suite(yaml_collection: YamlCollectionDeclaration) -> None: