mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-10 06:44:18 +00:00
Replace setuptools with entrypoints
This commit is contained in:
parent
4439ea2025
commit
ff15ba0865
9 changed files with 60 additions and 116 deletions
|
|
@ -4,7 +4,6 @@ import optparse
|
|||
import mock
|
||||
import pytest
|
||||
|
||||
from flake8 import exceptions
|
||||
from flake8.main import application as app
|
||||
|
||||
|
||||
|
|
@ -61,14 +60,6 @@ def test_exit_does_raise(result_count, catastrophic, exit_zero, value,
|
|||
assert excinfo.value.args[0] is value
|
||||
|
||||
|
||||
def test_missing_default_formatter(application):
|
||||
"""Verify we raise an ExecutionError when there's no default formatter."""
|
||||
application.formatting_plugins = {}
|
||||
|
||||
with pytest.raises(exceptions.ExecutionError):
|
||||
application.formatter_for('fake-plugin-name')
|
||||
|
||||
|
||||
def test_warns_on_unknown_formatter_plugin_name(application):
|
||||
"""Verify we log a warning with an unfound plugin."""
|
||||
default = mock.Mock()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue