I've set up Syntastic in Vim for Python development. Its been fantastic so far, but when writing tests with imported pytest.fixture
methods, I get a few bogus errors. For context, I'm using Flask in Python. But, consider the following test.py
example:
from common_stuff import app, client
def test_some_flask_think(client):
# some test stuff
And in common_stuff.py
:
@pytest.fixture
def client(app)
return app.test_client()
If they're in the same file - no complains from Syntastic. However, in a separate file - no luck. An F811
error is listed in each instance.
Someone well likely has encountered the same thing before. Would greatly appreciate advice / pointers here.
Thanks!