Update tests to expect new output strings

This commit is contained in:
Bryan Bennett 2024-04-19 16:07:10 -04:00
parent aa50e0f781
commit ba0cf20e0f
No known key found for this signature in database
GPG key ID: EE149E4215408DE9
3 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -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])