Skip to content

Commit

Permalink
tests: Fix indentation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuCouette authored and adrienverge committed Oct 12, 2020
1 parent 9ee8c27 commit 11b1f1c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,15 @@ def test_run_module_no_args(self):
subprocess.check_output([PYTHON, '-m', 'yamllint'],
stderr=subprocess.STDOUT)
self.assertEqual(ctx.exception.returncode, 2)
self.assertRegex(ctx.exception.output.decode(),
r'^usage: yamllint')
self.assertRegex(ctx.exception.output.decode(), r'^usage: yamllint')

def test_run_module_on_bad_dir(self):
with self.assertRaises(subprocess.CalledProcessError) as ctx:
subprocess.check_output([PYTHON, '-m', 'yamllint',
'/does/not/exist'],
stderr=subprocess.STDOUT)
self.assertRegex(ctx.exception.output.decode(),
r'No such file or directory')
r'No such file or directory')

def test_run_module_on_file(self):
out = subprocess.check_output(
Expand Down

0 comments on commit 11b1f1c

Please sign in to comment.