tweak tests and add get latest version

This commit is contained in:
Ondrej Samohel 2021-12-03 13:51:03 +01:00
parent e25fcade98
commit 383307d888
No known key found for this signature in database
GPG key ID: 02376E18990A97C6
3 changed files with 41 additions and 64 deletions

View file

@ -140,9 +140,10 @@ def test_search_string_for_openpype_version(printer):
]
for ver_string in strings:
printer(f"testing {ver_string[0]} should be {ver_string[1]}")
assert OpenPypeVersion.version_in_str(ver_string[0]) == \
ver_string[1]
assert isinstance(
OpenPypeVersion.version_in_str(ver_string[0]),
OpenPypeVersion if ver_string[1] else type(None)
)
@pytest.mark.slow
def test_install_live_repos(fix_bootstrap, printer, monkeypatch, pytestconfig):