diff options
author | rsiddharth <s@ricketyspace.net> | 2020-07-11 18:22:23 -0400 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2020-07-11 18:22:23 -0400 |
commit | 7dbd4633d37f0976b6074fe89111d4c143d4fbfe (patch) | |
tree | 7ef37d0ee04df83b0913352808eb470a5f835b06 /tests/test_markdown_link_style | |
parent | 8e19751d14f5f3cf17094631e210ed4bef2c2f7f (diff) |
use black for formatting
Diffstat (limited to 'tests/test_markdown_link_style')
-rw-r--r-- | tests/test_markdown_link_style/test_logging.py | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/tests/test_markdown_link_style/test_logging.py b/tests/test_markdown_link_style/test_logging.py index d4aea87..1ce8c07 100644 --- a/tests/test_markdown_link_style/test_logging.py +++ b/tests/test_markdown_link_style/test_logging.py @@ -24,6 +24,7 @@ from io import StringIO from markdown_link_style.logging import MDLSLogger + class TestMDLSLogger(object): """Test class for markdown_link_style.logging.MDLSLogger. @@ -31,32 +32,32 @@ class TestMDLSLogger(object): def setup(self): self.stream = StringIO() - self.logger = MDLSLogger('TestLogger', self.stream) + self.logger = MDLSLogger("TestLogger", self.stream) def test_debug(self): - log_msg = 'DEBUG::MSG' + log_msg = "DEBUG::MSG" self.logger.debug(log_msg) - assert self.stream.getvalue().strip('\n') == log_msg + assert self.stream.getvalue().strip("\n") == log_msg def test_info(self): - log_msg = 'DEBUG::INFO' + log_msg = "DEBUG::INFO" self.logger.info(log_msg) - assert self.stream.getvalue().strip('\n') == log_msg + assert self.stream.getvalue().strip("\n") == log_msg def test_warning(self): - log_msg = 'DEBUG::WARNING' + log_msg = "DEBUG::WARNING" self.logger.warning(log_msg) - assert self.stream.getvalue().strip('\n') == log_msg + assert self.stream.getvalue().strip("\n") == log_msg def test_error(self): - log_msg = 'DEBUG::ERROR' + log_msg = "DEBUG::ERROR" self.logger.error(log_msg) - assert self.stream.getvalue().strip('\n') == log_msg + assert self.stream.getvalue().strip("\n") == log_msg def test_critical(self): - log_msg = 'DEBUG::CRITICAL' + log_msg = "DEBUG::CRITICAL" self.logger.critical(log_msg) - assert self.stream.getvalue().strip('\n') == log_msg + assert self.stream.getvalue().strip("\n") == log_msg def teardown(self): pass |