From 375c3f9ec4ee1b5b24c58abd0767358a97921711 Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Fri, 29 Oct 2021 19:49:54 +0800 Subject: [PATCH] tests(gitignore): Fix test The gitignore loader was not loading the generated .gitignore because it only looks for it in the project root. --- tests/test_config_gitignore.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_config_gitignore.py b/tests/test_config_gitignore.py index b567b44..71d1939 100644 --- a/tests/test_config_gitignore.py +++ b/tests/test_config_gitignore.py @@ -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"] )