with pytest-flake8 plugins conflict
See original GitHub issue$ pytest tests/test_utils.py
platform darwin -- Python 3.6.1, pytest-3.1.3, py-1.4.34, pluggy-0.4.0
rootdir: /Users/qulc/Documents/PycharmProjects/upscale_hotel, inifile:
plugins: sanic-0.1.3, flake8-0.8.1, cov-2.5.1, celery-4.0.2
collected 12 items
tests/test_utils.py ............
============== 12 passed in 2.37 seconds =========
$ pytest tests/test_utils.py --flake8
platform darwin -- Python 3.6.1, pytest-3.1.3, py-1.4.34, pluggy-0.4.0
rootdir: /Users/qulc/Documents/PycharmProjects/upscale_hotel, inifile:
plugins: sanic-0.1.3, flake8-0.8.1, cov-2.5.1, celery-4.0.2
collected 13 items
tests/test_utils.py E............
____________ERROR at setup of FLAKE8-check _________________________
item = <Flake8Item 'tests/test_utils.py'>
def pytest_runtest_setup(item):
"""
append a loop fixture to all test func.
"""
> if LOOP_KEY not in item.fixturenames:
E AttributeError: 'Flake8Item' object has no attribute 'fixturenames'
../python3.6/site-packages/pytest_sanic/plugin.py:83: AttributeError
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
testinfra conflicts with pytest-flake8 · Issue #210 · pytest-dev/pytest ...
bug This issue/PR relates to a bug. Comments. @calind.
Read more >Plugin List — pytest documentation
name summary last release status requi...
pytest‑accept A pytest‑plugin for updating doctest outputs Jan 07, 2022 N/A pytes...
pytest‑addons‑test 用于测试pytest的插件 Aug 02, 2021 N/A pytes...
pytest‑aio...
Read more >pytest-flake8 - PyPI
Running flake8 tests on your project is likely to cause a number of issues. The plugin allows one to configure on a per-project...
Read more >Different flake8 behaviour locally and in tox - Stack Overflow
There are various flake8 plugins for import order - which one are you using? Does the real name of foo conflict with an...
Read more >Hypermodern Python 3: Linting - Medium
Finding more bugs with flake8-bugbear. The flake8-bugbear plugin helps you find various bugs and design problems in your programs.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Let’s close this issue in favor of https://github.com/yunstanford/pytest-sanic/pull/9
also, let me know if u really wanna fix this. a quick fix could be very easy. PR is always welcome.