separating the nix fixture from the __init__.py file to increase readability and overview over the existing fixtures Change-Id: I7a86cb729942e83a95b9eabbb09563822f3f9e54
11 lines
389 B
Python
11 lines
389 B
Python
from functional2.testlib.fixtures.nix import Nix
|
|
|
|
|
|
def test_fetchTree_presence(nix: Nix):
|
|
"""Ensures that fetchTree is actually absent if flakes are disabled"""
|
|
settings = nix.settings().feature("nix-command")
|
|
assert nix.eval("builtins ? fetchTree", settings).json() == False
|
|
|
|
settings.feature("flakes")
|
|
assert nix.eval("builtins ? fetchTree", settings).json() == True
|