Test that the indentation check counts no line of a settings file
CI / tests (pull_request) Successful in 5m22s
CI / tests (pull_request) Successful in 5m22s
This commit is contained in:
@@ -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})))
|
||||
|
||||
Reference in New Issue
Block a user