mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-12-16 14:01:14 +01:00
Don't track $nixfile if it is empty
This commit is contained in:
parent
22b5729f26
commit
0db25e4de9
2 changed files with 9 additions and 3 deletions
|
|
@ -33,5 +33,10 @@ def test_args(direnv_project: DirenvProject) -> None:
|
|||
direnv_exec(direnv_project, "echo $SHOULD_BE_SET")
|
||||
|
||||
|
||||
def test_no_files(direnv_project: DirenvProject) -> None:
|
||||
direnv_project.setup_envrc("use nix -p hello")
|
||||
direnv_exec(direnv_project, "hello")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue