mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-18 12:01:38 +03:00
10 lines
265 B
Python
10 lines
265 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('utils.latestVersion', versions=versions)
|
||
|
assert result == expected
|