Download api/tests/unit_tests/controllers/test_compare_versions.py from Underground-Digital/Workflow-Engine: direct link, hf CLI and curl.
- Browser
- Download file 784 Bytes
-
https://huggingface.co/spaces/Underground-Digital/Workflow-Engine/resolve/main/api/tests/unit_tests/controllers/test_compare_versions.py
- Command line
-
hf download hf://spaces/Underground-Digital/Workflow-Engine/api/tests/unit_tests/controllers/test_compare_versions.py
-
curl -L -o test_compare_versions.py https://huggingface.co/spaces/Underground-Digital/Workflow-Engine/resolve/main/api/tests/unit_tests/controllers/test_compare_versions.py
784 Bytes
| import pytest | |
| from controllers.console.version import _has_new_version | |
| def test_has_new_version(latest_version, current_version, expected): | |
| assert _has_new_version(latest_version=latest_version, current_version=current_version) == expected | |