question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 6 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
yunstanfordcommented, Nov 26, 2017

Let’s close this issue in favor of https://github.com/yunstanford/pytest-sanic/pull/9

1reaction
yunstanfordcommented, Aug 3, 2017

also, let me know if u really wanna fix this. a quick fix could be very easy. PR is always welcome.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found