Added plugin to filter by sub-packages#19
Conversation
|
Is this really necessary? |
|
@pllim - I got asked several times in astropy/astropy-APEs#52 for this functionality, so just thought I'd give it a shot - @bsipocz and others listed it as a critical feature of Note that this isn't just equivalent to: it's equivalent to: so it does save a bit of typing. I never plan on using this though, I'm fine with just calling pytest with the explicit paths. |
Explicit is better than implicit, right? Maybe they just have to deal with a bit more typing and less maintenance for us. |
|
I have strong feeling about it that we need this, otherwise many would end up not testing the docs. And it's convenient, too. And honestly we maintain less useful stuff all over the place. |
|
There's a conflict. |
|
I split this out into a separate plugin package: https://github.com/astropy/pytest-filter-subpackage - so I'll close this for now, and once that plugin is released we can add it as a dependency for pytest-astropy. |
This is a small plugin that was inspired by discussions in astropy/astropy-APEs#52 - basically this adds the ability to do e.g.
However, this only works for now if I remove:
from
setup.cfg, so I need to spend more time to understand how to get the plugins to work nicely.Note that this also makes pytest-astropy into a real package rather than just a meta-package. I think this plugin is too astropy-specific to put in a standalone plugin.