dream2nix/tests/unit/test_utils.py

14 lines
282 B
Python
Raw Normal View History

import pytest
import nix_ffi
2022-12-28 22:42:14 +03:00
@pytest.mark.parametrize(
"expected, versions",
[
("3", ["2", "3", "1"]),
],
)
def test_latestVersion(expected, versions):
2022-12-28 22:42:14 +03:00
result = nix_ffi.callNixFunction("dlib.latestVersion", versions=versions)
assert result == expected