flake8/tests/integration
Miro Hrončok 91b09d5b37 Tests: Add a value to mocked entry_points, so pytest 6+ can log it
Pytest 6.0.0rc1 attempts to log a repr of our mocked entry_point,
but it fails, becasue the repr metohod expects a valua attribute:

Reproducer:

    $ tox -e py38 --force-dep 'pytest==6.0.0rc1'
    ...
    Traceback (most recent call last):
      File "/usr/lib/python3.8/logging/__init__.py", line 1081, in emit
        msg = self.format(record)
      File "/usr/lib/python3.8/logging/__init__.py", line 925, in format
        return fmt.format(record)
      File "/usr/lib/python3.8/logging/__init__.py", line 664, in format
        record.message = record.getMessage()
      File "/usr/lib/python3.8/logging/__init__.py", line 369, in getMessage
        msg = msg % self.args
      File "/tmp/flake8/.tox/py38/lib/python3.8/site-packages/flake8/plugins/manager.py", line 44, in __repr__
        self.name, self.entry_point.value
      File "/tmp/flake8/.tox/py38/lib/python3.8/site-packages/mock/mock.py", line 632, in __getattr__
        raise AttributeError("Mock object has no attribute %r" % name)
    AttributeError: Mock object has no attribute 'value'
2020-07-20 17:49:12 +02:00
..
subdir instrument coverage on tests and require 100% coverage there 2020-03-23 12:15:29 -07:00
test_aggregator.py config: Make ConfigFileFinder 'extra_config_files' parameter optional 2020-01-12 23:28:52 -05:00
test_api_legacy.py Fix legacy api invocation of make_notifier 2019-01-30 11:00:36 -08:00
test_checker.py Tests: Add a value to mocked entry_points, so pytest 6+ can log it 2020-07-20 17:49:12 +02:00
test_main.py processor: Catch SyntaxError also when generating tokens for a file 2020-06-02 11:38:44 -07:00
test_plugins.py instrument coverage on tests and require 100% coverage there 2020-03-23 12:15:29 -07:00