diff options
| author | Eric N. Vander Weele <ericvw@gmail.com> | 2019-07-28 10:39:27 -0400 |
|---|---|---|
| committer | Eric N. Vander Weele <ericvw@gmail.com> | 2019-07-28 10:43:02 -0400 |
| commit | 9283f2f03f5c8e61eb5a6bca2f10afadb0d90317 (patch) | |
| tree | 412c412c1601ffa141f49f5f3ebf472bed15e10e /tests/unit | |
| parent | 9fbaf2d2ea49adb97cc45be83a966fb3c7f292f2 (diff) | |
| download | flake8-9283f2f03f5c8e61eb5a6bca2f10afadb0d90317.tar.gz | |
utils: Change `parse_comma_separated_list()` contract
This is the initial incision point to only accept `str` (or `None`) for
parsing out comma/whitespace/regexp separated values.
Diffstat (limited to 'tests/unit')
| -rw-r--r-- | tests/unit/test_utils.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index 20c5fb9..b4bd1a1 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -22,11 +22,6 @@ RELATIVE_PATHS = ["flake8", "pep8", "pyflakes", "mccabe"] ("E123,W234,,E206,,", ["E123", "W234", "E206"]), ("E123, W234,, E206,,", ["E123", "W234", "E206"]), ("E123,,W234,,E206,,", ["E123", "W234", "E206"]), - (["E123", "W234", "E206"], ["E123", "W234", "E206"]), - (["E123", "\n\tW234", "\n E206"], ["E123", "W234", "E206"]), - (["E123", "\n\tW234", "\n E206", "\n"], ["E123", "W234", "E206"]), - (["E123", "\n\tW234", "", "\n E206", "\n"], ["E123", "W234", "E206"]), - (["E123", "\n\tW234", "", "\n E206", ""], ["E123", "W234", "E206"]), ]) def test_parse_comma_separated_list(value, expected): """Verify that similar inputs produce identical outputs.""" |
