dream2nix/tests/unit/test_utils.py
2022-12-28 20:42:14 +01:00

14 lines
282 B
Python

import pytest
import nix_ffi
@pytest.mark.parametrize(
"expected, versions",
[
("3", ["2", "3", "1"]),
],
)
def test_latestVersion(expected, versions):
result = nix_ffi.callNixFunction("dlib.latestVersion", versions=versions)
assert result == expected