mirror of
https://github.com/Hopiu/djLint.git
synced 2026-05-23 04:05:49 +00:00
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:
parent
5392565580
commit
375c3f9ec4
1 changed files with 3 additions and 0 deletions
|
|
@ -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"]
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue