diff options
Diffstat (limited to 'gitlint-core/gitlint/tests/test_display.py')
-rw-r--r-- | gitlint-core/gitlint/tests/test_display.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gitlint-core/gitlint/tests/test_display.py b/gitlint-core/gitlint/tests/test_display.py index 148024b..b5bdbee 100644 --- a/gitlint-core/gitlint/tests/test_display.py +++ b/gitlint-core/gitlint/tests/test_display.py @@ -14,9 +14,9 @@ class DisplayTests(BaseTestCase): display = Display(LintConfig()) display.config.verbosity = 2 - with patch('gitlint.display.stderr', new=StringIO()) as stderr: + with patch("gitlint.display.stderr", new=StringIO()) as stderr: # Non exact outputting, should output both v and vv output - with patch('gitlint.display.stdout', new=StringIO()) as stdout: + with patch("gitlint.display.stdout", new=StringIO()) as stdout: display.v("tëst") display.vv("tëst2") # vvvv should be ignored regardless @@ -25,7 +25,7 @@ class DisplayTests(BaseTestCase): self.assertEqual("tëst\ntëst2\n", stdout.getvalue()) # exact outputting, should only output v - with patch('gitlint.display.stdout', new=StringIO()) as stdout: + with patch("gitlint.display.stdout", new=StringIO()) as stdout: display.v("tëst", exact=True) display.vv("tëst2", exact=True) # vvvv should be ignored regardless @@ -34,15 +34,15 @@ class DisplayTests(BaseTestCase): self.assertEqual("tëst2\n", stdout.getvalue()) # standard error should be empty throughout all of this - self.assertEqual('', stderr.getvalue()) + self.assertEqual("", stderr.getvalue()) def test_e(self): display = Display(LintConfig()) display.config.verbosity = 2 - with patch('gitlint.display.stdout', new=StringIO()) as stdout: + with patch("gitlint.display.stdout", new=StringIO()) as stdout: # Non exact outputting, should output both v and vv output - with patch('gitlint.display.stderr', new=StringIO()) as stderr: + with patch("gitlint.display.stderr", new=StringIO()) as stderr: display.e("tëst") display.ee("tëst2") # vvvv should be ignored regardless @@ -51,7 +51,7 @@ class DisplayTests(BaseTestCase): self.assertEqual("tëst\ntëst2\n", stderr.getvalue()) # exact outputting, should only output v - with patch('gitlint.display.stderr', new=StringIO()) as stderr: + with patch("gitlint.display.stderr", new=StringIO()) as stderr: display.e("tëst", exact=True) display.ee("tëst2", exact=True) # vvvv should be ignored regardless @@ -60,4 +60,4 @@ class DisplayTests(BaseTestCase): self.assertEqual("tëst2\n", stderr.getvalue()) # standard output should be empty throughout all of this - self.assertEqual('', stdout.getvalue()) + self.assertEqual("", stdout.getvalue()) |