Skip to content

Commit

Permalink
Updated unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rquidute committed Dec 4, 2023
1 parent 3198ecd commit f35d043
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
10 changes: 1 addition & 9 deletions app/tests/python_tests/test_sdk_python_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 1 addition & 4 deletions app/tests/yaml_tests/test_sdk_yaml_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f35d043

Please sign in to comment.