[pytest-dev] Adding a marker to items that have a fixture
me at the-compiler.org
Thu May 2 03:30:18 EDT 2019
On Thu, May 02, 2019 at 02:18:42PM +1200, Craig de Stigter wrote:
> This sort of works ( the marker is present by the time the test runs), but
> command-line filtering options (`-m 'not solr'`) don't filter based on it.
> I guess this hook is running after those options have been consulted?
> I also tried the same thing in pytest_collection_modifyitems, but that
> happens later so is even less likely to work.
Works fine for me in pytest_collection_modifyitems.
There's also a plugin which does the same:
https://www.qutebrowser.org | me at the-compiler.org (Mail/XMPP)
GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
I love long mails! | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: not available
More information about the pytest-dev