Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/pytest-dev/pytest

The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
https://github.com/pytest-dev/pytest

Merge pull request #11308 from reaganjlee/iter-reporting

Improve reporting from __iter__ exceptions

050f4028162de52413742af3678c5019bb01f698 authored over 1 year ago
fix test for codecov

d1722d5c189ff7a1baccadfb514d05402104ccee authored over 1 year ago
[automated] Update plugin list (#11329)

Co-authored-by: pytest bot <[email protected]>

4deb38b2edc97e559df067c4d3e4d2b70d2e5f53 authored over 1 year ago
doc/reference: replace Unicode dashes with ascii `-` in cli flags (#11323)

370eacd3ca8addb5a8eb3f1291feff4304181042 authored over 1 year ago
use python 3.11 for update-plugin-list (#11328)

010e1742d8f8c1526c417a871d4f82ddf6e5e7de authored over 1 year ago
Merge pull request #11320 from ubaumann/add_nuts

add nuts to plugin list

6e5f10b28f4f2831b161c8ceb695f96a89502da8 authored over 1 year ago
[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

dd5ae0c3b88058c4488fe1411c53e874e79bd7b2 authored over 1 year ago
use `if not TYPE_CHECKING` on `pytest.__getattr__` to prevent type checkers from using it

fc653d0d12fb43aa7fa843cb801d33854e1033b6 authored over 1 year ago
Ignore dip in branch coverage (since py3.13+ isn't tested in CI)

a357c7abc84e0382894a9b53d88ebb7ed2680686 authored over 1 year ago
un-iterable fix

61133ba83d0f24c40aa6b0c1473919c7aff3b16f authored over 1 year ago
Revert iter raises checks

This reverts commit e938580257e8120dabbea789d5b7a3dd3354d0a3.

Revert "improve error msg and tes...

049eec8474d3238b056a42fa07558c4293a97f05 authored over 1 year ago
Merge pull request #11322 from bluetech/testing-norecursedirs

testing: add `.*` to `norecursedirs`

37bb1861757685acca09455d63aa148a65317989 authored over 1 year ago
testing: add `.*` to `norecursedirs`

Setting `norecursedirs` overrides the default, so we end up scanning
dot-directories and such wh...

3cb3cd1a081dd1bcccedbfdee652e667427fdb87 authored over 1 year ago
PR suggestions

7a625481dae2380d8f9d1cf53f6a59a2977b49c8 authored over 1 year ago
Merge pull request #11321 from tjsmart/fix-doctesting

Add doctesting-coverage to envlist

0ddfdfcc04d9bd0c9594c1538ed1f75033ae8e1e authored over 1 year ago
Add doctesting-coverage to envlist

87bfc83aa0d9fbc8f8e95180805a1a58cdf43fd6 authored over 1 year ago
Move _from_module override to pre-existsing DocTestFinder subclass

ebd571bb18d2cf00ebc70db8090217fc62d00e98 authored over 1 year ago
add nuts to plugin list

Adding https://github.com/network-unit-testing-system/nuts to the plugin list.

176d728b7b351fd967be1ff63deee042d5c234e2 authored over 1 year ago
Fix doctest collection of `functools.cached_property` objects.

d4fb6ac9f7875b762a6bd1f179ef5df4997d6182 authored over 1 year ago
Merge pull request #11219 from bluetech/fixtures2

fixtures: make FixtureRequest abstract, add TopRequest subclass

15fadd8c5cb6a4812c8b2a6ebcbb37c3d05eb7fe authored over 1 year ago
[pre-commit.ci] pre-commit autoupdate (#11313)

updates:
- [github.com/pre-commit/mirrors-mypy: v1.4.1 → v1.5.0](https://github.com/pre-commit/...

73d754bd74ae8ddf86eb90cda29545cef495e927 authored over 1 year ago
Merge pull request #11309 from bluetech/docs-xfail

doc: fix a few `xfail` nits

10056865d2a4784934ce043908a0e78d0578f677 authored over 1 year ago
doc: fix a few `pytest.mark.xfail` nits

Refs #9027, #10094.

1827d8d5f9164da3cf8a7f0a22ea6c36814fdfd4 authored over 1 year ago
fixtures: make FixtureRequest abstract, add TopRequest subclass

Fix #11218.

9e164fc4fe46bbd43ac87fc30d0d6935f7e4d28b authored over 1 year ago
improve error msg and test

c0cf822ca1d5d6ac74f46ddccbe377c254c6084a authored over 1 year ago
error msg

ec1053cc162250e42ae220ebe91c3bf00b22b084 authored over 1 year ago
changelog

d2dc8a70b593b61a013ae3eba99bb3f10e82eb65 authored over 1 year ago
simplify code / take out user-gen typeerror case

b9cb87d862bb3f841d67723ac5717ce90b219dc2 authored over 1 year ago
check for user-generated exceptions

e938580257e8120dabbea789d5b7a3dd3354d0a3 authored over 1 year ago
tests

47c0fc3d78a6db8bbe6c298dec76084142f59171 authored over 1 year ago
Merge pull request #11301 from bluetech/fixtures-resolve-directness

python: use clearer terminology for `_resolve_arg_value_types`

556e075d23a91eb42821129a5d874ec3174e17ad authored over 1 year ago
python: use clearer terminology for `_resolve_arg_value_types`

3ad3fc6b8f480656e727ce7e89ad84eb9a6735e7 authored over 1 year ago
Move `fixtures.py::add_funcarg_pseudo_fixture_def` to `Metafunc.parametrize` (#11220)

To remove fixtures.py::add_funcargs_pseudo_fixture_def and add its logic
i.e. registering funca...

09b78737a5bde23eb488d5d6649bf966c5809176 authored over 1 year ago
Merge pull request #11268 from bluetech/conftest-load

config: split `_getconftestmodules` and `_loadconftestmodules`

b2186e245556d64b0dee522b919b0ef025c15161 authored over 1 year ago
Merge pull request #11292 from pytest-dev/dependabot/pip/testing/plugins_integration/django-4.2.4

build(deps): Bump django from 4.2.3 to 4.2.4 in /testing/plugins_integration

18bc6c9a0e06a0eea5df47ded5a8884fdcd4a66c authored over 1 year ago
Merge pull request #11291 from calestyo/improve-duplicate-values-documentation

Improve duplicate values documentation

24c9aa6c3049410df26a8b3199cb9bdbeced85a9 authored over 1 year ago
build(deps): Bump django in /testing/plugins_integration

Bumps [django](https://github.com/django/django) from 4.2.3 to 4.2.4.
- [Commits](https://github...

9c67b7aeb60d7abbea782018e73a93d6c8bbef16 authored over 1 year ago
improve exception message on duplicate parametrization

Signed-off-by: Christoph Anton Mitterer <[email protected]>

1cc58ed67ff9e9c90b6b39154763138779ebceaf authored over 1 year ago
doc: parametrize() can be called multiple times only on different args

Signed-off-by: Christoph Anton Mitterer <[email protected]>

84a342e27c1b3ba218b9c31ed9aeddba843ef36c authored over 1 year ago
python: fix scope assignment for indirect parameter sets (#11277)

Previously, when assigning a scope for a fully-indirect parameter set,
when there are multiple ...

e8a8a5f320ad7a9fc1d58ab74c2425e923634f60 authored over 1 year ago
doc: Link pytest.main to how-to guide (#11287)

1c04a925039a528a996bf0433ef604086d6c432e authored over 1 year ago
doc: update information about assertion messages (#11285)

It was pointed out[0] that the previous behaviour has been obsoleted by
commit 37bd1e03cb77a26a...

cc0adf6bf3c9f356e3473ff8a21004b9c1fb2b93 authored over 1 year ago
Improve docs for Parametrizing conditional raising (#11279)

What one typically actually wants in such a case is both, checking for some
resulting values *a...

b8b74331b420bc465892ce56c03e3614819f47f0 authored over 1 year ago
Add `FixtureArgKey` class to represent fixture deps in `fixtures.py` (#11231)

4797deab998622d2fda34e96920f6d672d30e8b0 authored over 1 year ago
[pre-commit.ci] pre-commit autoupdate (#11269)

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/PyCQA/flake8: 6.0.0 → 6.1.0](...

c9163402e046c25ad86ff94fd6606a451102efdc authored over 1 year ago
config: split _getconftestmodules and _loadconftestmodules

Previously, the `_getconftestmodules` function was used both to load
conftest modules for a path...

01ac13a77d6cd56a5ac20756542e59a7b14129a0 authored over 1 year ago
Merge pull request #11138 from bluetech/pkg-mod

python: change `Package` to no longer be a `Module`/`File`

485c555812286003d9234b5818c9852c3256bccb authored over 1 year ago
python: change `Package` to no longer be a `Module`/`File`

Fix #11137.

a21fb87a90974189c1b8b26189959507189bb3a1 authored over 1 year ago
Merge pull request #11256 from bluetech/scope-pkg-crash

fixtures: fix crash when `parametrize(scope="package")` is used without a Package

c754da10d2f568f8c7646407bc51e2cb0a6213b7 authored over 1 year ago
fixtures: fix crash when `parametrize(scope="package")` is used without a Package

There as handling for `scope="class"` without a class, but not for
`scope="package"` without a p...

71e627aa8f4eecb9f13e69285069480f063dd118 authored over 1 year ago
Clarify doc for running tests by nodeid section (#11249)

d3552ef4c0770fe90e8a583d8fae9fd9280bca96 authored over 1 year ago
Merge pull request #11253 from bluetech/11243-cherry-picks

11243 cherry picks

448563caaac559b8a3195edc58e8806aca8d2c71 authored over 1 year ago
fixtures: move _get_direct_parametrize_args to a standalone function

So it can be used independently of the FixtureManager.

e8aa906e06f696f28d2ae4ce205e099aab18a7a8 authored over 1 year ago
config: avoid list[], set[], dict[]

Should wait with this until Python 3.8 is dropped.

12054a49722eee2b12e3b9106f3cf878bcb13648 authored over 1 year ago
Merge pull request #11244 from bluetech/rootdir-tweaks

Rootdir tweaks

430ad145c13ec1b2bdd50eaf3d297c57daf413f4 authored over 1 year ago
config: don't pass the entire Config to `determine_setup()`

Seems better to make the function a bit more pure, and avoids the
circular import.

13e2b002583b0f3e8541b4b1201c10b8c330a865 authored over 1 year ago
config: fix an incorrect type

Was a mistake in d97d44a97af2303eb3f3aea1f16fd834f5415509.

4e42421ebf2938bfac01e271afb195c2323566fd authored over 1 year ago
doc/usage: clarify "Run tests by node ids"

Fix #11107, #11235.

161ba87300ab5b49efa2833cd0e39bba301c2712 authored over 1 year ago
Merge pull request #11238 from bluetech/doc-not-indirect

doc/example/parametrize: a few fixes/improvements

f2b6040e9e11f3f56c974f5002bc699c1e332027 authored over 1 year ago
Remove ep2023 training (#11241)

e3247834e2797461ce155ff730d4b4b67c04ebc6 authored over 1 year ago
Extend pytest.raises to support Exception having __repr__ method and initialized with kwargs (#11073)

Co-authored-by: Bruno Oliveira <[email protected]>

0b4a557087b7d90f4db44a893470545656730d2a authored over 1 year ago
Merge pull request #10927 from RonnyPfannschmidt/pypi-json-for-plugin-list

update-plugin-list: use json, use http caching, use gh action caches

ffdcce67f4ed7c80d0779649de23cd9845026c27 authored over 1 year ago
update-plugin-list: use json, use http caching, use gh action caches

this change
* switches from html index usage to json index usage
* adds using requests-cache as ...

1ded74739b4d6be9dd9a20537296312685e683b1 authored over 1 year ago
doc/example/parametrize: a few fixes/improvements

Remove "Indirect" from a few section names -- not actually indirect.

Also few minor updates to ...

497a1d798ae9918d647707328c0b40f299430aa3 authored over 1 year ago
Have pytest.raises match against exception `__notes__` (#11227)

The doctest is skipped because add_note is only available in 3.11,

Closes #11223

1de0923e83e3258709559d86d142adaab65a42d8 authored over 1 year ago
Merge pull request #11228 from bluetech/fixtures-check-scope-test

fixtures: add a test for a currently non-covered scope mismatch scenario

7c30f674c58ee16f2b74ef85bb8765252764ef70 authored over 1 year ago
fixtures: add a test for a currently non-covered scope mismatch scenario

This test makes clear the need for the `_check_scope()` call in the
`pytest_setup_fixture` impl ...

396bfbf30b1594b6f56528913d6144826060198e authored over 1 year ago
Merge pull request #11215 from bluetech/fixtures-tweaks2

fixtures: minor tweaks

02ba39bfcd2a14be80e30afd9b72e7f60c61cb38 authored over 1 year ago
Merge pull request #11217 from bluetech/fixtures-skip-xunit-loc

fixtures: show test as skip location if skipped from an xunit setup function

29010d23a6e147c8e3e1ef7dd526ba1ea483bb97 authored over 1 year ago
build(deps): Bump pypa/gh-action-pypi-publish from 1.8.7 to 1.8.8 (#11221)

Bumps [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) from 1.8.7 t...

de1f6f58ba10d31cb5f6657f1b441c4317a97a50 authored over 1 year ago
build(deps): Bump pytest-asyncio in /testing/plugins_integration (#11222)

Bumps [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) from 0.21.0 to 0.21.1.
- [R...

cfda801ebf0bb790459fd77148a355c51c9c9d56 authored over 1 year ago
fixtures: show test as skip location if skipped from an xunit setup function

Fix #11216.

c5262b0c42b9d82bb66665c7bbb1599d63bb2634 authored over 1 year ago
fixtures: remove inaccurate comment

unittest TestCases can also use `usefixtures`. Just remove this comment,
it's not very helpful.

ff6e110161b83c151d4a2f887c0910311ce35ef1 authored over 1 year ago
unittest: hide access to _request

Let the parent class (Function) do this. Tiny bit better abstraction.
There seems to be no reaso...

a3fbf2438975d72887ef5b614d529bab893937ca authored over 1 year ago
fixtures: some code comments and minor improvements

0e0ed2af950754248dbcedc926a49f55bdb095e0 authored over 1 year ago
Merge pull request #11213 from bluetech/py38-literal

Use typing.Literal without TYPE_CHECKING checks

bf451d47a1b3be80a7f89b3076e4816c47390037 authored over 1 year ago
Merge pull request #11214 from pytest-dev/update-plugin-list/patch-32f480814

[automated] Update plugin list

578fbe3dfd0eb46cbf4314db10d37970e8d698e2 authored over 1 year ago
[automated] Update plugin list

a6687196261b631c41eea7b6f9792b5ff81de00d authored over 1 year ago
Use typing.Literal without TYPE_CHECKING checks

Literal was added in Python 3.8 which we now require so can use it
freely.

04e0db7e4895362925df294296d43a50d194ece8 authored over 1 year ago
Merge pull request #11209 from bluetech/fixtures-doc-comments

fixtures: some tweaks & improvements

32f480814ceb4b4b7ebfe4c2acde5ae1236434da authored over 1 year ago
Export `FixtureDef`

FixtureDef is used in the `pytest_fixture_setup` hook so needs to be
public. However since its c...

fb55615d5e999dd44306596f340036c195428ef1 authored over 1 year ago
fixtures: expand comments and annotations on fixture internals

01f38aca440f0fd2a0526c08441e419ee8f34880 authored over 1 year ago
fixtures: change `FixtureDef.cached_result[2]` from exception triplet to exception

Fix #11208.

9d0ddb462517fc6c4f6dc7e0f1e14af2e08aeed9 authored over 1 year ago
fixtures: remove two unused functions

Not used since 310b67b2271cb05f575054c1cdd2ece2412c89a2.

40ed678885a0be2267f0719bb40b185ee94ba353 authored over 1 year ago
Merge pull request #11123 from bluetech/new-style-wrappers

Switch to new-style pluggy hook wrappers

78d81ef8658f5fc058f622c76c057cf903b45f64 authored over 1 year ago
Switch to new-style pluggy hook wrappers

Fix #11122.

b41acaea1203abd25b83699e12124fed06fa9f9f authored over 1 year ago
[pre-commit.ci] pre-commit autoupdate (#11195)

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.3.0 → 23.7.0](http...

7008385253939271c7046f37f4008e1b7dcbe75c authored over 1 year ago
Merge pull request #11192 from bluetech/py38-extra

A few more Python>=3.8 simplifications

b25a3adff5a257f29876ef364e217f091dbd42cd authored over 1 year ago
fixtures: fix a typing ignore TODO

From understanding the code better I see this is the correct fix.
The fixturedefs can be None if...

ecfab4dc8b6ea33fef7a8f4880cf8e745679bc15 authored over 1 year ago
fixtures: change a lambda to partial

It makes for a more debuggable repr. Before:

<function FixtureRequest._schedule_finalizers....

7967b2e710b5d35a56bb9198410a3987c7f9bb59 authored over 1 year ago
fixtures: replace a `startswith("conftest.py")` with `== "conftest.py"`

I can't imagine why we would want to test for a prefix here.

2c80de532f6501090ccd08a71dbc504af51f3991 authored over 1 year ago
A few more Python>=3.8 simplifications

f1c9570a0e3f480c82658cf2a8df4107020c841d authored over 1 year ago
build(deps): Bump anyio[curio,trio] in /testing/plugins_integration (#11191)

Bumps [anyio[curio,trio]](https://github.com/agronholm/anyio) from 3.7.0 to 3.7.1.
- [Changelog...

b20e7f6d0cd85f439d7963b4ae7c3c3fc908452d authored over 1 year ago
build(deps): Bump pytest-rerunfailures in /testing/plugins_integration (#11190)

Bumps [pytest-rerunfailures](https://github.com/pytest-dev/pytest-rerunfailures) from 11.1.2 to ...

b91d5a311289afc5d67ffec80ab1755e6fe6d3a2 authored over 1 year ago
build(deps): Bump pypa/gh-action-pypi-publish from 1.8.5 to 1.8.7 (#11189)

Bumps [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) from 1.8.5 t...

4e75bff71a948ffc2e67b1decb00de39a87f1995 authored over 1 year ago
Clarify docs for pytest.main default behavior (#11187)

Add explicit mentions of the default behavior to both API reference and
how-to section about wa...

99ab8ae884a3772adc119e7fba22253b1a82eede authored over 1 year ago
Merge pull request #11184 from pytest-dev/update-plugin-list/patch-fd7a4d242

[automated] Update plugin list

782cacf86bc6579c3395dbe784a69c8a70651fff authored over 1 year ago
[automated] Update plugin list

a3b4220d762ac2afd72577a7cbd4a0a006f89830 authored over 1 year ago
Merge pull request #11106 from bluetech/docs-ref-collection-objs

reference: improve the node types docs a bit

fd7a4d2429d76e37a1920d0abbe670278ba84def authored over 1 year ago
doc: fix EncodingWarnings in examples (#11158)

Otherwise the warnings show in the regen output.

b73ec8e5d117a244b696ff4f9d2dfb74df078b2f authored over 1 year ago