mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 11:36:11 +01:00
Update tests to expect new output strings
This commit is contained in:
parent
aa50e0f781
commit
ba0cf20e0f
3 changed files with 4 additions and 4 deletions
2
direnvrc
2
direnvrc
|
|
@ -485,7 +485,7 @@ use_nix() {
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [[ -e ${profile_rc} ]]; then
|
if [[ -e ${profile_rc} ]]; then
|
||||||
_nix_direnv_info "using cached dev shell"
|
_nix_direnv_info "Using cached dev shell"
|
||||||
else
|
else
|
||||||
_nix_direnv_error "use_nix failed - Is your nix shell working?"
|
_nix_direnv_error "use_nix failed - Is your nix shell working?"
|
||||||
return 1
|
return 1
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ def common_test(direnv_project: DirenvProject) -> None:
|
||||||
)
|
)
|
||||||
sys.stderr.write(out1.stderr)
|
sys.stderr.write(out1.stderr)
|
||||||
assert out1.returncode == 0
|
assert out1.returncode == 0
|
||||||
assert "renewed cache" in out1.stderr
|
assert "Renewed cache" in out1.stderr
|
||||||
assert "Executing shellHook." in out1.stderr
|
assert "Executing shellHook." in out1.stderr
|
||||||
|
|
||||||
run(["nix-collect-garbage"])
|
run(["nix-collect-garbage"])
|
||||||
|
|
@ -37,7 +37,7 @@ def common_test(direnv_project: DirenvProject) -> None:
|
||||||
)
|
)
|
||||||
sys.stderr.write(out2.stderr)
|
sys.stderr.write(out2.stderr)
|
||||||
assert out2.returncode == 0
|
assert out2.returncode == 0
|
||||||
assert "using cached dev shell" in out2.stderr
|
assert "Using cached dev shell" in out2.stderr
|
||||||
assert "Executing shellHook." in out2.stderr
|
assert "Executing shellHook." in out2.stderr
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ def direnv_exec(
|
||||||
sys.stderr.write(out.stderr)
|
sys.stderr.write(out.stderr)
|
||||||
assert out.returncode == 0
|
assert out.returncode == 0
|
||||||
assert out.stdout == "OK\n"
|
assert out.stdout == "OK\n"
|
||||||
assert "renewed cache" in out.stderr
|
assert "Renewed cache" in out.stderr
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize("strict_env", [False, True])
|
@pytest.mark.parametrize("strict_env", [False, True])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue