diff options
| author | Eric N. Vander Weele <ericvw@gmail.com> | 2019-10-25 16:37:40 -0400 |
|---|---|---|
| committer | Eric N. Vander Weele <ericvw@gmail.com> | 2019-10-25 17:11:30 -0400 |
| commit | b42e758ac71f2ddcf4b3f4e47453dec3e0604dfa (patch) | |
| tree | bb8e922dab80f6a51648032e7faba672a426cb98 /tests/unit | |
| parent | e2c4b50a46e7913e55f79f328ccf1257f74b8a2a (diff) | |
| download | flake8-b42e758ac71f2ddcf4b3f4e47453dec3e0604dfa.tar.gz | |
linters: Add flake8-bugbear for finding bugs and design problems
Also, make appropriate changes to satisfy issues flagged by
`flake8-bugbear`.
Diffstat (limited to 'tests/unit')
| -rw-r--r-- | tests/unit/test_base_formatter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/test_base_formatter.py b/tests/unit/test_base_formatter.py index 7a85554..ff2df7c 100644 --- a/tests/unit/test_base_formatter.py +++ b/tests/unit/test_base_formatter.py @@ -147,7 +147,7 @@ class AfterInitFormatter(base.BaseFormatter): def test_after_init_is_always_called(): """Verify after_init is called.""" formatter = AfterInitFormatter(options()) - assert getattr(formatter, 'post_initialized') is True + assert formatter.post_initialized is True class FormatFormatter(base.BaseFormatter): |
