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://github.com/rciorba/pytest-fixture-marker Florian -- https://www.qutebrowser.org | [email protected] (Mail/XMPP) GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc I love long mails! | https://email.is-not-s.ms/
signature.asc
Description: PGP signature
_______________________________________________ pytest-dev mailing list [email protected] https://mail.python.org/mailman/listinfo/pytest-dev
