Ecosyste.ms: OpenCollective

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

pytest

The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
Collective - Host: opensource - https://opencollective.com/pytest - Website: https://www.pytest.org/ - Code: https://github.com/pytest-dev/pytest

fixtures: avoid slow `pm.get_name(plugin)` call by using the new `plugin_name` hook parameter

github.com/pytest-dev/pytest - 9ea2e0a79f8d45b801b4bff8e4ad0aefd09fab21 authored about 1 year ago
hookspecs: add `plugin_name` parameter to the `pytest_plugin_registered` hook

We have a use case for this in the next commit.

The name can be obtained by using `manager.get_...

github.com/pytest-dev/pytest - 0f5ecd83c432bc56e39549fe7353d06a92455a2a authored about 1 year ago
pre-commit: add pluggy to mypy deps

Otherwise mypy doesn't fully recognize pluggy's typing for some reason
or another.

github.com/pytest-dev/pytest - 6b9bba2edb12a1b6679476aefe20c85dfb652ea0 authored about 1 year ago
avoid using __file__ in pytest_plugin_registered as can be wrong on Windows

github.com/pytest-dev/pytest - 6e9f566d7919b52be266c365ea65cbab79108469 authored about 1 year ago
Merge pull request #11822 from bluetech/doc-hookspec

hookspec: minor doc tweaks

github.com/pytest-dev/pytest - a6708b92542eb886d3ba7b809213b2068a7988a6 authored about 1 year ago
doc: Remove sold out training (#11823)

github.com/pytest-dev/pytest - e895c9d38cf4e66912c60c9c8307efcb9f82df4c authored about 1 year ago
hookspec: modernize a reference

github.com/pytest-dev/pytest - c973ccb622da11181bbb820fa5861e825982f271 authored about 1 year ago
hookspec: move pytest_load_initial_conftests up

Reflect the order in which the plugins are called.

github.com/pytest-dev/pytest - dd1447cfe509fac989258e078a73609e0d122a73 authored about 1 year ago
hookspec: remove explicit `:param` types

Duplicates info in the type annotations which sphinx understands.

github.com/pytest-dev/pytest - 9ad8b9fc36f4f62e085b1ad9a8b8bdf041cd8fa9 authored about 1 year ago
doc: Update training dates and add pytest sprint (#11819)

github.com/pytest-dev/pytest - 348e6de102c5a5ccdaab88c860d57b1f49f7b1d2 authored about 1 year ago
Merge pull request #11817 from bluetech/conftesterror-cleanup

config: stop using exception triplets in `ConftestImportError`

github.com/pytest-dev/pytest - 9af6d46371074a19ca5c35cf1cc24a11ed1b5828 authored about 1 year ago
config: stop using exception triplets in `ConftestImportError`

In recent python versions all of the info is on the exception object
itself so no reason to deal...

github.com/pytest-dev/pytest - e1074f9c3df36bac760552447eb20a2bc16dbe0e authored about 1 year ago
Merge pull request #11815 from bluetech/iter_parents-rename

nodes: rename `iterparents()` -> `iter_parents()`

github.com/pytest-dev/pytest - 6e74601466d47a401d209a58855d584c74fae856 authored about 1 year ago
Merge pull request #11814 from bluetech/pycache-ignore-collect

main,python: move `__pycache__` ignore to `pytest_ignore_collect`

github.com/pytest-dev/pytest - 3acbdc2f79127bb20427ea23ea4ce76221fde4f3 authored about 1 year ago
nodes: rename `iterparents()` -> `iter_parents()`

After the fact I remembered there is `node.iter_markers()` so let's be
consistent with that rath...

github.com/pytest-dev/pytest - 707642ad357d6fa1cc394991c2f4770c20aa6ccf authored about 1 year ago
main,python: move `__pycache__` ignore to `pytest_ignore_collect`

This removes one thing that directory collectors need to worry about.

This adds one hook dispat...

github.com/pytest-dev/pytest - 2413d1b214dd2f58d301043dada54ff153ac373a authored about 1 year ago
Merge pull request #11795 from lesteve/improve-assert-mod-not-in-mods-error-message

Improve assert mod not in mods error message

github.com/pytest-dev/pytest - 2bb0eca3471dab6454259adb102de4e002fac2f6 authored about 1 year ago
Improve assert mod not in mods error message

[ran: tweaked message, made the formatting lazy]

github.com/pytest-dev/pytest - 1c9d6834fdd7343397993703f3eb82e1460c56fd authored about 1 year ago
[automated] Update plugin list (#11811)

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

github.com/pytest-dev/pytest - c6ed86453fbfd4a1f9ef6814a7a4679b3ced778f authored about 1 year ago
Merge pull request #11708 from fcharras/FIX/crash_during_conftest_collection

FIX key formating divergence when inspecting plugin dictionary.

github.com/pytest-dev/pytest - e403bbf1a908be6069e4dc2caeb21fb86a14935a authored about 1 year ago
Fix `assert mod not in mods` crash

Fix #27806.

Co-authored-by: Loïc Estève <[email protected]>
Co-authored-by: Ran Benita <ran...

github.com/pytest-dev/pytest - a7c2549321ea30b778653a00c5307df625407687 authored about 1 year ago
Merge pull request #11808 from bluetech/doctest-conftest

doctest: remove special conftest handling

github.com/pytest-dev/pytest - d65bcd9a3b110ddf59c222dcfc8a02db605f0cd3 authored about 1 year ago
doctest: remove special conftest handling

(Diff better viewed ignoring whitespace)

Since e1c66ab0ad8eda13e5552dfc939e07d7290ecd39, confte...

github.com/pytest-dev/pytest - 06dbd3c21ccdf1ac76e8fa264048133cb4660842 authored about 1 year ago
Merge pull request #11803 from pytest-dev/package-scope-note

Add note about package scope

github.com/pytest-dev/pytest - 1b78de4e21d55983422e7327a51304ef0fc61679 authored about 1 year ago
Clarify package scope

The behavior of package scope is surprising to some
(as seen by related questions on SO), this s...

github.com/pytest-dev/pytest - 82fda31e99b8302c0a242ed33afa2557adb30d5b authored about 1 year ago
Merge pull request #11801 from bluetech/node-iterchain

nodes: add `Node.iterchain()` function

github.com/pytest-dev/pytest - 5645fa45fb063027aab6d49d4d64090446d82292 authored about 1 year ago
nodes: add `Node.iterparents()` function

This is a useful addition to the existing `listchain`. While `listchain`
returns top-to-bottom, ...

github.com/pytest-dev/pytest - 5bd5b80afdec77349a50d3c95b0d85d50f1ec0a9 authored about 1 year ago
Merge pull request #11799 from bluetech/rm-nose-compat_co_firstlineno

python: remove support for nose's `compat_co_firstlineno`

github.com/pytest-dev/pytest - bd58c09500cdb8d36d222ce9db14b8a49b579bab authored about 1 year ago
Slight change to tmp_path documentation to more clearly illustrate its behavior (#11800)

github.com/pytest-dev/pytest - 996e45d66a8e4ec16562e2937a532e9a3afe9876 authored about 1 year ago
python: remove support for nose's `compat_co_firstlineno`

Since we're removing nose support, let's also drop support for this
attribute.

From doing a cod...

github.com/pytest-dev/pytest - c7d85c5dc668e4a9eb2867e7432d599cdde799bd authored about 1 year ago
Merge pull request #11794 from bluetech/fixturedef-ref-cycle

A few cleanups

github.com/pytest-dev/pytest - b1c430820f0e5c5120a0f2a70078a770afd09a3d authored about 1 year ago
config: clarify a bit of code in `_importconftest`

github.com/pytest-dev/pytest - 35a3863b151aa97b52b4b612b4959090cab307d9 authored about 1 year ago
fixtures: remove unhelpful FixtureManager.{FixtureLookupError,FixtureLookupErrorRepr}

Couldn't find any reason for this indirection, nor any plugins which
rely on it. Seems like hist...

github.com/pytest-dev/pytest - 368fa2c03e5be3eb00cfea45e168886d9a24a286 authored about 1 year ago
fixtures: avoid FixtureDef <-> FixtureManager reference cycle

There is no need to store the FixtureManager on each FixtureDef.

github.com/pytest-dev/pytest - 372c17e22899e8e676e105dae714e897426bef86 authored about 1 year ago
Merge pull request #11718 from pytest-dev/dependabot/github_actions/hynek/build-and-inspect-python-package-2.0.0

build(deps): Bump hynek/build-and-inspect-python-package from 1.5.4 to 2.0.0

github.com/pytest-dev/pytest - c4a356eaee57ebbf70cc336dbe083e3cea47dee5 authored about 1 year ago
build(deps): Bump actions/download-artifact from 3 to 4

Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4.
- [...

github.com/pytest-dev/pytest - 2270cab1c2dfb34dcc60c0e458be33ecb653e92d authored about 1 year ago
build(deps): Bump hynek/build-and-inspect-python-package

Bumps [hynek/build-and-inspect-python-package](https://github.com/hynek/build-and-inspect-python...

github.com/pytest-dev/pytest - 956d0e5e9d9a10c7e7faa90909452890f6081e62 authored about 1 year ago
[pre-commit.ci] pre-commit autoupdate (#11792)

updates:
- [github.com/PyCQA/flake8: 6.1.0 → 7.0.0](https://github.com/PyCQA/flake8/compare/6.1...

github.com/pytest-dev/pytest - 7bc8385924f3688b4c425c52e45ac780b6858cd2 authored about 1 year ago
Merge pull request #11788 from pytest-dev/dependabot/pip/testing/plugins_integration/pytest-asyncio-0.23.3

build(deps): Bump pytest-asyncio from 0.23.2 to 0.23.3 in /testing/plugins_integration

github.com/pytest-dev/pytest - 9b7e10a3c0f0a68c9a8c3b4dc24616db1c175454 authored about 1 year ago
build(deps): Bump pytest-asyncio in /testing/plugins_integration

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

github.com/pytest-dev/pytest - 913d93debb75a2614bae742e6dd568731c5f29c3 authored about 1 year ago
Merge pull request #11785 from bluetech/matchfactories-nodes

fixtures: match fixtures based on actual node hierarchy, not textual nodeids

github.com/pytest-dev/pytest - 97dfc3429e69ce27c8322a8cb25501abe0ad41a1 authored about 1 year ago
fixtures: match fixtures based on actual node hierarchy, not textual nodeids

Refs #11662.

--- Problem

Each fixture definition has a "visibility", the `FixtureDef.baseid`
a...

github.com/pytest-dev/pytest - 992d0f082f43c06f6a50bf9c863eba2d221d2272 authored about 1 year ago
Merge pull request #11780 from bluetech/register-fixture

Add an internal "register fixture" API and use it replace object patching for fixture injection

github.com/pytest-dev/pytest - b968f63ca5b245face9c53fa4bbfd070e50c567b authored about 1 year ago
fixtures: add an internal API for registering a fixture

Add a function on the `FixtureManager` to register a fixture with
pytest. Currently this can onl...

github.com/pytest-dev/pytest - 3234c79ee57feb7ec481811af1925bb0f81acdea authored about 1 year ago
python,unittest: replace obj fixture patching with `FixtureManager._register_fixture`

Instead of modifying user objects like modules and classes that we
really shouldn't be touching,...

github.com/pytest-dev/pytest - c8792bd0800b8ffc536a6ce251f9eb3075b5f5fa authored about 1 year ago
Merge pull request #11776 from bluetech/unittest-xunit-inline

unittest: inline `_make_xunit_fixture`

github.com/pytest-dev/pytest - 851b72f2893e942a453c3327abc97ca55ade45ec authored about 1 year ago
Merge pull request #11774 from bluetech/fspath-cleanups

Small `fspath` cleanups

github.com/pytest-dev/pytest - 1d7349d18c18ce6b8595e4ecf752fb30f34e7cbd authored about 1 year ago
[automated] Update plugin list (#11784)

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

github.com/pytest-dev/pytest - 5747a6c06ebc4823a48a2b66d0644f36dda3eee6 authored about 1 year ago
Add summary for xfails with -rxX option (#11574)

Co-authored-by: Brian Okken <[email protected]>

github.com/pytest-dev/pytest - 13eacdad8ac434b4336cf1e6496869815a6457c7 authored about 1 year ago
unittest: inline `_make_xunit_fixture`

The indirection makes things harder to follow in this case IMO.

github.com/pytest-dev/pytest - a616adf3aef6057203994852a8e0ae3cef54e0e3 authored about 1 year ago
nodes: fix attribute name `fspath` -> `path` in `get_fslocation_from_item`

github.com/pytest-dev/pytest - 685e52ec30f87cd968fea28addf985925631b703 authored about 1 year ago
fixtures: remove unnecessary `fspath` workaround

github.com/pytest-dev/pytest - 7b4ab8134ead2bd11d3e670b281d960c547e50f0 authored about 1 year ago
Merge pull request #11769 from neutrinoceros/fix_warns_docstring

Fix a mistake in pytest.warns' docstring (expect_warning accepts tuples, not any sequence)

github.com/pytest-dev/pytest - c2a4a8d518b433b0b688d084bad09040bf774f70 authored about 1 year ago
Fix a mistake in pytest.warns' docstring (expect_warning accepts tuples, not any sequence)

github.com/pytest-dev/pytest - ac96256272b6b806f1b036ed4476910b16dd7ff0 authored about 1 year ago
Update docstring of scripts/generate-gh-release-notes.py (#11767)

Follow up to #11754.

github.com/pytest-dev/pytest - d38193646d872db966731234dcfc06ca995d07e4 authored about 1 year ago
Merge pull request #11754 from nicoddemus/release-notes

Improve GitHub release workflow

github.com/pytest-dev/pytest - cd07177906bbaad1d86691a19607ac6e88f73c5b authored about 1 year ago
Enable type-checking in scripts/

github.com/pytest-dev/pytest - 6321b74faefef7c5dc267862eccc6a56f9a0ec61 authored about 1 year ago
Improve GitHub release workflow

This changes the existing script to just generate the release notes and delegate the actual publ...

github.com/pytest-dev/pytest - 5aa289e47865ab9c1ca4d1efbffa1fd1024b81f7 authored about 1 year ago
Fix teardown error reporting when `--maxfail=1` (#11721)

Co-authored-by: Ran Benita <[email protected]>

github.com/pytest-dev/pytest - 12b9bd580198edf88a795b692cbd6a1a05fe408a authored about 1 year ago
Merge pull request #11757 from bluetech/rm-removed-in-8

Remove pytest 8 deprecations

github.com/pytest-dev/pytest - f017df443a589494b0a47488b1616db7c12dc8cd authored about 1 year ago
Remove deprecated py.path (`fspath`) node constructor arguments

github.com/pytest-dev/pytest - 6c89f9261c6f5bde93bd116ef56b7ac96fc0ef21 authored about 1 year ago
Remove `PytestRemovedIn8Warning`

Per our deprecation policy.

github.com/pytest-dev/pytest - 215f4d1fab4fad11ea57fdd2b497d7cd3b46c7c1 authored about 1 year ago
doc/deprecations: fix incorrect title level

github.com/pytest-dev/pytest - 1ba07450e427b7e291fd7c33278c0c087529a57d authored about 1 year ago
Remove deprecated py.path hook arguments

github.com/pytest-dev/pytest - a98f02d4238793300f1be01f75bf0fff5609a241 authored about 1 year ago
Clarified `markers` ini property. Fix #11738 (#11739)

github.com/pytest-dev/pytest - effc2b05294b63e23162327a5704077dda6c60d4 authored about 1 year ago
Merge pull request #11760 from bluetech/fix-highlight-empty-source

terminalwriter: fix crash trying to highlight empty source

github.com/pytest-dev/pytest - 2c5c97b6d150b21860ac18a40856f960b5fbcbf8 authored about 1 year ago
terminalwriter: fix crash trying to highlight empty source

For quick checking I don't know how we can reach here with an empty
source, so test just checks ...

github.com/pytest-dev/pytest - cb5a42c836744181229b522611084a70220e4e33 authored about 1 year ago
Remove deprecated `Parser.addoption` backward compatibilities

github.com/pytest-dev/pytest - 10fbb2325f66fb1834c02b04dd07089cca13985f authored about 1 year ago
Remove deprecated `pytest.Instance` backward compat

github.com/pytest-dev/pytest - 477959ef7dc9f8491a80ba4d585d737a68f0a34c authored about 1 year ago
Remove deprecated `pytest.warns(None)`

github.com/pytest-dev/pytest - 4147c92b21c0fc393a59e42cab2b2511fcb60e06 authored about 1 year ago
Remove deprecated `--strict` option

github.com/pytest-dev/pytest - 1f8b39ed328a395c073db603bf4063fb3ec97218 authored about 1 year ago
Remove deprecated `pytest_cmdline_preparse` hook

github.com/pytest-dev/pytest - f4e7b0d6e00aff21d1c4aadfb51fb0f1f4c4bd94 authored about 1 year ago
Remove deprecated {FSCollector,Package}.{gethookproxy,isinitpath}

github.com/pytest-dev/pytest - f13724e2e3e7b66b09cca4608a57e68f7d303b6d authored about 1 year ago
Remove deprecated pytest.{exit,fail,skip}(msg=...) argument

github.com/pytest-dev/pytest - 0591569b4ba9bfb12e5b5307da621a83c4ceced6 authored about 1 year ago
Remove deprecated nose support

github.com/pytest-dev/pytest - 0f18a7fe5e8911fe4b329931dcf8f23cb30130bd authored about 1 year ago
Merge pull request #11756 from pytest-dev/cherry-pick-release

Cherry pick 8.0.0rc1 release notes

github.com/pytest-dev/pytest - a53984a55b35235a21b4142822a9dd10d7e995f1 authored about 1 year ago
Merge pull request #11744 from pytest-dev/release-8.0.0rc1

Prepare release 8.0.0rc1

(cherry picked from commit 665e4e58d3fba8319e922674c286e92f070e6ec3)

github.com/pytest-dev/pytest - d3c7ba310ceafe05f1115fa5b6770d1329504aae authored about 1 year ago
Merge pull request #11753 from bluetech/cherry-pick-release

Cherry-pick 7.4.4 release notes

github.com/pytest-dev/pytest - 6bec880283cd9f6c37a73c522271e8eb5d0ffab7 authored about 1 year ago
Merge pull request #11752 from pytest-dev/release-7.4.4

Prepare release 7.4.4

(cherry picked from commit 18dcd9d38d18fc01bf1f7f5f60db69f785957101)

github.com/pytest-dev/pytest - a1b6b7473b103b6dfa6c2b4bf8d680713d3f6047 authored about 1 year ago
Merge pull request #11746 from pytest-dev/update-plugin-list/patch-acd445a3f

[automated] Update plugin list

github.com/pytest-dev/pytest - 3701d1218b522d7d76d179536ffbf0f4e8bd8bd6 authored about 1 year ago
nodes: fix tracebacks from collection errors are not getting pruned (#11711)

Fix #11710.

github.com/pytest-dev/pytest - d220880924c7ba827ff8b4d68f991fb3e67a1cd0 authored about 1 year ago
Merge pull request #11745 from bluetech/change-marked-fixture-removal

Change "Marks applied to fixtures" removal from 8 to 9

github.com/pytest-dev/pytest - 640f84a5aa914b14d470e5b3c544643fd89be68e authored about 1 year ago
[automated] Update plugin list

github.com/pytest-dev/pytest - 460c38915d5bf5b52e8d6f99bb3fb2dc2c861bbb authored about 1 year ago
Change "Marks applied to fixtures" removal from 8 to 9

The deprecation has only been added in 8.0, so can't be removed in 8.
That will have to wait for 9.

github.com/pytest-dev/pytest - a71a95b54cac6afd14ea36ede39b86b28155110e authored about 1 year ago
Merge pull request #11646 from bluetech/pkg-collect

Rework Session and Package collection

github.com/pytest-dev/pytest - acd445a3f3c2d573e9918734c99eb58954fbabb6 authored about 1 year ago
Merge pull request #11736 from pytest-dev/update-plugin-list/patch-52db918a2

[automated] Update plugin list

github.com/pytest-dev/pytest - c7ee55993b77315f0031b629a2fb7db17ad5cee1 authored about 1 year ago
Merge pull request #11737 from pytest-dev/pre-commit-ci-update-config

[pre-commit.ci] pre-commit autoupdate

github.com/pytest-dev/pytest - b9855b244d6ff1da2d3b7df9801a51bf8451e42e authored about 1 year ago
[pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.12.0 → 23.12.1](https://github.com/psf/black/compare/23.12....

github.com/pytest-dev/pytest - 1e5aab1b2b8900ec6287ff168951184f9a7abecd authored about 1 year ago
[automated] Update plugin list

github.com/pytest-dev/pytest - f93c0fc34eff371ecae3cd82aa362de2edf7be74 authored about 1 year ago
Fix handling empty values of NO_COLOR and FORCE_COLOR (#11712)

* Fix handling empty values of NO_COLOR and FORCE_COLOR

Fix handling NO_COLOR and FORCE_COLOR...

github.com/pytest-dev/pytest - 52db918a27b2eb5043de6e80215076a98b0b9fff authored about 1 year ago
Merge pull request #11732 from bluetech/typing-tweaks

Some minor typing tweaks

github.com/pytest-dev/pytest - 54a0ee02ea042bb84d9e4c1ece41571affb43059 authored about 1 year ago
Add syntactic highlights to the error explanations (#11661)

* Put a 'reset' color in front of the highlighting

When doing the highlighting, some lexers w...

github.com/pytest-dev/pytest - 88ae27da085da7d59d34736234b57a280dcc9dfc authored about 1 year ago
Merge pull request #11715 from pytest-dev/update-plugin-list/patch-047ba83da

[automated] Update plugin list

github.com/pytest-dev/pytest - e06a3d02f8287b1be3f42734d125554af7b51005 authored about 1 year ago
Some minor typing tweaks

github.com/pytest-dev/pytest - 75f292d9df38827d40d444371428f092e7321c27 authored about 1 year ago
[pre-commit.ci] pre-commit autoupdate (#11722)

updates:
- [github.com/psf/black: 23.11.0 → 23.12.0](https://github.com/psf/black/compare/23.11...

github.com/pytest-dev/pytest - 581762fcba64336aff6feaaaebe12387328f7f4e authored about 1 year ago
Merge pull request #11660 from BenjaminSchubert/bschubert/simplify-pprint

Remove more unused pprint features

github.com/pytest-dev/pytest - 803b190a174eb847962d3f3886e9ac80c6be269f authored about 1 year ago
pprint: Remove the option to add underscore for numbers

This is never used, we can remove this. If we wanted instead, we could
always enable it

github.com/pytest-dev/pytest - 64b5b665cf477a8e920e0e8b57f6b96a2d40f365 authored about 1 year ago
pprint: Remove the `format` method, it's not used outside of pprint

Let's reduce the API surface for the bundled PrettyPrinter to what we
really need and use

github.com/pytest-dev/pytest - 03b24e5b306e4f43edd4b1162a0bd7f94e5ae8fd authored about 1 year ago
pprint: Remove conversion to int, we only accept those

github.com/pytest-dev/pytest - 283a746dad7a3d88c35783bd4da595e507b855bd authored about 1 year ago
pprint: Remove the option to sort dictionaries, we always do it

github.com/pytest-dev/pytest - 6aa35f772fd62ad6c5dd9f761974ab44cd224d58 authored about 1 year ago