mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-09 03:56:10 +01:00
test: remove nix flake check
This commit is contained in:
parent
27ab2f270a
commit
01b5bf6eb6
1 changed files with 0 additions and 13 deletions
|
|
@ -18,18 +18,6 @@ def run(cmd: List[str], **kwargs) -> subprocess.CompletedProcess:
|
|||
return subprocess.run(cmd, **kwargs)
|
||||
|
||||
|
||||
def support_flakes() -> bool:
|
||||
cmd = [
|
||||
"nix-instantiate",
|
||||
"--json",
|
||||
"--eval",
|
||||
"--expr",
|
||||
"builtins ? getFlake",
|
||||
]
|
||||
proc = subprocess.run(cmd, text=True, capture_output=True, check=True)
|
||||
return proc.stdout == "true"
|
||||
|
||||
|
||||
class TestBaseNamespace:
|
||||
"""Nested so test discovery doesn't run the base class tests directly."""
|
||||
|
||||
|
|
@ -107,7 +95,6 @@ class NixShellTest(TestBaseNamespace.TestBase):
|
|||
cached_message = "using cached derivation"
|
||||
|
||||
|
||||
@unittest.skipUnless(support_flakes(), "requires flakes")
|
||||
class FlakeTest(TestBaseNamespace.TestBase):
|
||||
direnvrc_command = "use flake"
|
||||
renewed_message = "renewed cache"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue