pytest-dev / pytest-subtests

unittest subTest() support and subtests fixture
MIT License
203 stars 21 forks source link

Request: adding `SubTests` to `__init__.py` #121

Closed jamesbraza closed 6 months ago

jamesbraza commented 6 months ago

I pip installed https://github.com/pytest-dev/pytest-subtests/tree/c1b90cbe4797bc15f83decc74033a6550fa23462, which gives pytest-subtests==0.11.1.dev18+gc1b90cb. With this file:

from pytest_subtests import SubTests

mypy complains, despite https://github.com/pytest-dev/pytest-subtests/issues/114 being closed:

"pytest_subtests": module is installed, but missing library stubs or py.typed
marker  [import-untyped]
    from pytest_subtests import SubTests
    ^

Can we add from .plugin import SubTests to __init__.py?

nicoddemus commented 6 months ago

Thanks @jamesbraza! 0.12.0 is out. 🎉

jamesbraza commented 6 months ago

@nicoddemus thanks for cutting a release 👍 appreciated

It looks like 0.12.0 got published: https://pypi.org/project/pytest-subtests/0.12.0/

But sadly it's not showing up in the general PyPI page: https://pypi.org/project/pytest-subtests/

Any ideas as to why that might happen?

nicoddemus commented 6 months ago

It is probably just not updated yet, it shows up for me just fine:

image

Try CTRL+F5 on your browser.

jamesbraza commented 6 months ago

Yeah looks it was PyPI being slow to update. I also had to run poetry cache clear pypi --all. Thanks again 👌