mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-02 06:44:56 +03:00
14 lines
282 B
Python
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
|