tests(gitignore): Fix test

The gitignore loader was not loading the generated .gitignore
because it only looks for it in the project root.
This commit is contained in:
John Vandenberg 2021-10-29 19:49:54 +08:00
parent 5392565580
commit 375c3f9ec4

View file

@ -27,6 +27,9 @@ def test_cli(runner: CliRunner) -> None:
with open("tests/config_gitignore/.gitignore", "w") as git:
git.write("html_two.html")
with open("tests/config_gitignore/pyproject.toml", "w") as f:
f.write("")
result = runner.invoke(
djlint, ["tests/config_gitignore/html_two.html", "--check", "--use-gitignore"]
)