Commit graph

12 commits

Author SHA1 Message Date
Ian Cordasco
2d3e277b1e
Handle optional parameters that were never supported
Previously, pycodestyle never introspected the argument names for
classes except to require that ``tree`` be an argument it could pass.
For Flake8 3.0, we lifted that restriction, but old plugins seem to
have cargo-culted their __init__ signature to be

    def __init__(self, tree, builtins=None):

For some yet unknown reason. This was causing an AttributeError. By
updating flake8.utils.parameters_for to return a dictionary that
indicates whether the parameter is required or not, we can side-step
this by simply ignoring the parameter if it has a default value and
we cannot provide it.

Closes #151
2016-06-28 09:36:24 -05:00
Ian Cordasco
81eb3e41cc Add more processor tests 2016-04-02 11:13:23 -05:00
Ian Cordasco
425f89eee9 Add more tests around the processor module 2016-03-29 08:07:15 -05:00
Ian Cordasco
4ea161ff9c Add a few more unit tests around FileProcessor 2016-03-28 21:04:34 -05:00
Ian Cordasco
7de8a058dd Add unit test for build_ast 2016-03-28 19:43:14 -05:00
Ian Cordasco
698af80514 Add test for FileProcessor#split_line 2016-03-27 14:32:21 -05:00
Ian Cordasco
82dd4f6d25 Add more FileProcessor tests 2016-03-26 08:51:58 -05:00
Ian Cordasco
a4cc9d6fa8 Add test for reading from stdin with the file processor 2016-03-21 10:23:27 -05:00
Ian Cordasco
0fd276d5ee Add a test for FileProcessor.should_ignore_file 2016-03-17 15:16:15 -05:00
Ian Cordasco
5cde4bebae Add docstring for our test helper 2016-03-17 15:16:00 -05:00
Ian Cordasco
48b995fa62 Remove unnecessary and outdated test runner 2016-03-17 14:55:57 -05:00
Ian Cordasco
09000762fb Rename test file to mirror actual class it is testing 2016-03-17 09:15:52 -05:00
Renamed from tests/unit/test_file_checker.py (Browse further)