Files
lix/tests/functional2/eval/test_experimental_features.py
T
Commentator2.0 d22b8bd613 move nix fixture to own file
separating the nix fixture from the __init__.py file to increase
readability and overview over the existing fixtures

Change-Id: I7a86cb729942e83a95b9eabbb09563822f3f9e54
2025-05-07 20:02:32 +02:00

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