Skip to content

Commit

Permalink
fix typo in class attr
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-bagerard committed Mar 21, 2021
1 parent 0ad637d commit ce9fdc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ starting with `test_` against your validator.
Changes
-------

0.1.2 - 2021-03-21
0.1.3 - 2021-03-21
``````````````````
* minor refactoring and doc improvement

Expand Down
6 changes: 3 additions & 3 deletions flake8_test_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import re

# metadata
__version__ = "0.1.2"
__version__ = "0.1.3"
CODE_PREFIX = "TN"

# constants
Expand Down Expand Up @@ -100,14 +100,14 @@ class MyFlake8Plugin(Flake8Argparse):

version = __version__
name = "test-name"
code_previx = CODE_PREFIX
code_prefix = CODE_PREFIX

ERRORS = {
101: "test function name does not match the convention ({func_name})",
}

def format_code(self, code):
return f"{self.code_previx}{code}"
return f"{self.code_prefix}{code}"

def _generate_error(self, node, code, func_name):
msg = "{0} {1}".format(self.format_code(code), self.ERRORS[code])
Expand Down

0 comments on commit ce9fdc7

Please sign in to comment.