From ea608fe5d0c5817f41231f6c58ae2a93de47e622 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 1 Dec 2026 23:54:53 +0100 Subject: [PATCH] Test that the indentation check counts no line of a settings file --- bin/chunk_preflight/test_indentation.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/chunk_preflight/test_indentation.py b/bin/chunk_preflight/test_indentation.py index bff0ec12..8eedaaa6 100644 --- a/bin/chunk_preflight/test_indentation.py +++ b/bin/chunk_preflight/test_indentation.py @@ -56,6 +56,9 @@ class SpaceIndentation(unittest.TestCase): with self.subTest(name): self.assertIsInstance(space_indented(self.checkout(**{"app.py": SPACED, name: text})), SpaceIndented) + def test_counts_no_line_of_a_settings_file(self): + self.assertIsNone(space_indented(self.checkout(**{"app.py": TABBED, "package.json": '{\n "name": "x",\n "version": "1",\n "private": true\n}\n'}))) + def test_counts_only_the_first_code_files_git_lists(self): first = {f"a{number:03}.py": TABBED for number in range(SAMPLE)} self.assertIsNone(space_indented(self.checkout(**first, **{"b1.py": SPACED * 400})))