[pytest-dev] [proposal] deprecating the pytest_namespace hook

Florian Bruhin me at the-compiler.org
Mon Sep 5 07:47:06 EDT 2016


* Floris Bruynooghe <flub at devork.be> [2016-09-05 12:11:12 +0100]:
> > >     the second problem it creates is, it makes the pytest namespace
> > >     impossible to introspect for external tools
> > > 
> > > I agree that's annoying, but that's a problem in general on how dynamic
> > > pytest is (IDEs don't autocomplete on fixture parameters either), so I
> > > would say this is small.
> 
> If the external tools would call `pytest.init()` before introspecting
> then it would work just fine.  We could even provide a pylint plugin
> by default for this in that case.  That would be nice.

FWIW I recently updated pylint's "brain" module for pytest so it at
least understands stuff added in pytest 3:

https://github.com/PyCQA/astroid/commit/8ec025fa36c9c627bcdd6da7fab56271731d47eb

But I agree this is less than optimal.

Florian

-- 
http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
         I love long mails! | http://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pytest-dev/attachments/20160905/c748f04c/attachment.sig>


More information about the pytest-dev mailing list