diff options
| author | Tomer Keren <tomer.keren.dev@gmail.com> | 2019-01-13 21:41:10 +0200 |
|---|---|---|
| committer | Anthony Sottile <asottile@umich.edu> | 2019-01-30 08:55:57 -0800 |
| commit | bdf3ce9135804e966df18423326b2a0be9b8ee3e (patch) | |
| tree | 8a8acf0c71efa88281e3ea3d0730971c3d2b0bca /tests/unit | |
| parent | b64421c5e857abac64f529f4e1a71522c2c24afa (diff) | |
| download | flake8-bdf3ce9135804e966df18423326b2a0be9b8ee3e.tar.gz | |
Fix dogfood
Diffstat (limited to 'tests/unit')
| -rw-r--r-- | tests/unit/conftest.py | 3 | ||||
| -rw-r--r-- | tests/unit/test_file_checker.py | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py index 5b8daa3..d29c0cd 100644 --- a/tests/unit/conftest.py +++ b/tests/unit/conftest.py @@ -2,6 +2,7 @@ import pytest import optparse + def options_from(**kwargs): """Generate a Values instances with our kwargs.""" kwargs.setdefault('hang_closing', True) @@ -10,8 +11,8 @@ def options_from(**kwargs): kwargs.setdefault('stdin_display_name', 'stdin') return optparse.Values(kwargs) + @pytest.fixture def default_options(): """Fixture returning the default options of flake8""" return options_from() -
\ No newline at end of file diff --git a/tests/unit/test_file_checker.py b/tests/unit/test_file_checker.py index 9e9bd03..3d0992e 100644 --- a/tests/unit/test_file_checker.py +++ b/tests/unit/test_file_checker.py @@ -47,7 +47,7 @@ def test_nonexistent_file(): assert error[0] == "E902" -def test_raises_proper_exception_on_failed_plugin_run(tmp_path, default_options): +def test_raises_exception_on_failed_plugin(tmp_path, default_options): foobar = tmp_path / 'foobar.py' foobar.write_text("I exist") plugin = { |
