Fixing up codestyle issues found within functional2 for later adding ruff formatter Change-Id: I0b280587c8243137184091a6d36df3dfe7568eb7
12 lines
408 B
Python
12 lines
408 B
Python
from functional2.testlib.fixtures.nix import Nix
|
|
|
|
|
|
# ruff: noqa: N802
|
|
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() is False
|
|
|
|
settings.feature("flakes")
|
|
assert nix.eval("builtins ? fetchTree", settings).json() is True
|