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 #6202 from linw1995/fix_getmodpath

Fix incorrect result of getmodpath method.

eeeb19626b26072ff49735e221dc558363716b78 authored about 5 years ago
Fix --setup-plan fixture lifetimes (#6214)

Fix --setup-plan fixture lifetimes

bebd80456b4a9865c88c5341ed21cf7ecfee9aa4 authored about 5 years ago
minor: visit_Assert: move setting of `negation` out of branches

f38f2d402e183130222993f501d92eefe0d398dc authored about 5 years ago
Revert "ci: use tox -vv"

`tox -vv` is too verbose, and was only used as a hack to get the output
of durations.

As for in...

f9feef6808c250b0c98d7d35580e3fad75d17439 authored about 5 years ago
Merge pull request #6192 from nicoddemus/remove-reportlog-6180

Remove report_log in favor of pytest-reportlog

89eeefbbafaccbee48d8c8501cf9b9318946f491 authored about 5 years ago
mypy: config: use mypy_path=src (#6222)

ed5f191da23d73713b89f81d13e592aa12d826bf authored about 5 years ago
Metafunc: remove hack for DefinitionMock (#6223)

b4ff6b36727cdaa64e0f6d524d290eddd0593e72 authored about 5 years ago
Metafunc: remove hack for DefinitionMock

Done initially in 99015bfc8.

2ad2fbc9a222f3ab2cab5379972c40d3f5ad2db1 authored about 5 years ago
mypy: config: use mypy_path=src

This allows for checking files inside of "testing" without having
"src/…" as an argument also.

b461010f32bb60cca1718a0542a4426f73a61758 authored about 5 years ago
Metafunc: remove unused _ids (#6220)

64d89105166264ad5169869bae8b945f542e7fb4 authored about 5 years ago
Factor out _validate_parametrize_spelling (#6221)

b412661de9fca2ed51d30eb29a3c0606bb10a868 authored about 5 years ago
Hardening an existing test for demonstrating this change.

5d5f48097922dae26da06a12482a7a74de7ba924 authored about 5 years ago
Factor out _validate_parametrize_spelling

This makes it easier to read `pytest_generate_tests`.

91dec8e2bf5e4e9c43b040a8b2f286c8275f8141 authored about 5 years ago
Metafunc: remove unused _ids

Forgotten in 40b85d7ee.

f3a10245d0cfbad21c8c49d1ce7227afbcb0d716 authored about 5 years ago
_idval: remove trailing newline from exception

426a4cdca901606d3ffd716c063e394cec964f9f authored about 5 years ago
Update AUTHORS

46ffdf0e3a98bbb6ecb2393ee706ed8250f56ade authored about 5 years ago
fix whitespace issues in tests for #2049

1e3be8ada4585ba279cfc24be8c3b09b25213804 authored about 5 years ago
changelog entry for #2049

6dfd683a0c34535c79b6baccdc60d301c64b4f76 authored about 5 years ago
resolve #2049

9e759010d9e9bf6ff10766c54f37bdb6ce1266c2 authored about 5 years ago
Merge pull request #6201 from asottile/mm

Merge master into features

a2d48332fc767b06d024c7988a7a29d221d83ec4 authored about 5 years ago
tests: revisit test_cacheprovider (#6199)

bac6eebfff8f1cd21736dbf0d367bf4ca97da0d9 authored about 5 years ago
Merge pull request #6205 from bluetech/type-annotations-8

Add type annotations to _pytest.compat and _pytest._code.code

fa578d7329593ceb9405189aac1de23b6354c2dd authored about 5 years ago
tests: revisit test_cacheprovider

1b4623a6d16a17d228deda23d4242d944dff2397 authored about 5 years ago
test_cache_writefail_permissions: ignore any other plugins

b9a3ba1fe8a02b5093ad72785ab5d908e18e228c authored about 5 years ago
Add type annotations to _pytest._code.code

eaa34a9df0fa341c1b21bd3b232928812e6e8a06 authored about 5 years ago
pre-commit: upgrade black (#6208)

e3796047c1b09f58d14ee60d669b1258479d3c76 authored about 5 years ago
re-run black

54a954514b5a02b4858707ef653a1a204cd05509 authored about 5 years ago
Remove (now) unnecessary fmt: off

b1a597ab0292a1360a750f7df8cd9bf498e2cd72 authored about 5 years ago
pre-commit: upgrade black

This brings https://github.com/psf/black/pull/826, which helps with
https://github.com/psf/black...

5d247b9caf5c74ced8fcf48950fd4a15b678c7f6 authored about 5 years ago
cacheprovider: set: use json.dumps + write (#6206)

4b7148f9a4a48a41ebc745902d486efe23663dff authored about 5 years ago
cacheprovider: set: use json.dumps + write

``json.dump`` is slower since it iterates over chunks [1].

For 100 ``cache.set`` calls this sav...

786d839db1e584e33f2f0543b6c16cdfeefe11ee authored about 5 years ago
Add type annotations to _pytest.compat

562d4811d59e495bdfd3123a7f725d55462769ec authored about 5 years ago
Make Source explicitly implement __iter__()

Source was previously iterable because it implements `__getitem__()`,
which is apparently a thin...

a649f157de8bc16fb99152b2f64e407f1e842692 authored about 5 years ago
Simplify a FormattedExcinfo test

The previous test was better in that it used fakes to test all of the
real code paths. The probl...

307add025b5464e87a55b49c6e5e4ce4c6373eee authored about 5 years ago
Inline the FuncargnamesCompatAttr compat helper

It doesn't help much IMO, just adds indirection and makes it harder to
type.

e3ac44df360849809d8d156bd24827025238072c authored about 5 years ago
Remove unneeded getrawcode() calls from tests

5bfe793fd5455c04049c4a564d1a6dc666cc647a authored about 5 years ago
Remove a PyPy version check for an unsupported version

pytest doesn't support these PyPy versions anymore, so no need to have
checks for them.

c7a83a0f316c8bebd42df636b8d5cccfe948a72c authored about 5 years ago
Remove checks for Python2-only fields im_func and func_code

04d68fbc9e53ff01962ed5da8686ced276425c95 authored about 5 years ago
A few linting fixes

Add some Python 3.8 type: ignores; all are already fixed in the next
mypy release, so can be rem...

f760356578836fd888a1cd825460d8daa8808ea6 authored about 5 years ago
Merge pull request #6204 from TH3CHARLie/add-changelog-on-tmp_path_factory

changelog: #3985 also introduce `tmp_path_factory`

f24f20a46e0efd8b375ab3457e9f6864e59979e5 authored about 5 years ago
remove trailing-whitespace

b090ac62048990cc4d54dab841e81a8921b97284 authored about 5 years ago
change: #3985 also introduce

9c681b45e39a144f8c80abbd66eb4db0e185a238 authored about 5 years ago
Fix incorrect result of getmodpath method.

329f56ecec5a9fcbfa160d4b467342a7c19ef2c0 authored about 5 years ago
Merge remote-tracking branch 'origin/master' into mm

cc78444c30ba7930358cd0bd3cfac9ba52cb579f authored about 5 years ago
Merge pull request #6198 from asottile/release-5.2.4

Preparing release version 5.2.4

3a668ea6ff24b0c8f00498c3144c63bac561d925 authored about 5 years ago
Import Path from _pytest.pathlib for py35 (#6193)

c49c61fdafdce50ffefd3ad482e3bd6f58ef298e authored about 5 years ago
tests: use sys.dont_write_bytecode

Setting PYTHONDONTWRITEBYTECODE in the environment does not change it
for the current process.

1abb08d52f165e46bb3cc80a9ece860aa4afe5b5 authored about 5 years ago
Preparing release version 5.2.4

c9a96cdee8ee7c1a9ead49b355fab9aef73196fe authored about 5 years ago
Import Path from _pytest.pathlib for py35

This is important for `isinstance` checks etc.

5979837c6084e80367ce4f7e1b97aabd755221b0 authored about 5 years ago
Merge pull request #6197 from asottile/fix_init_py_discovery

Fix incorrect discovery of non-test `__init__.py` files.

19a15a94eeb403631f847fab5fe5073bc56e8bcc authored about 5 years ago
Add regression tests for __init__.py breakage

4e0f99260d438d750b55a0881110658b8bba5a4a authored about 5 years ago
Revert "fix bug with nonskipped first test in package (#5831)"

This reverts commit 85288b53218d4e0037dce9c34bd37f86fa9e212d, reversing
changes made to 5f9db8a0...

176c7771fb4f3bd703bb6c9650cc32e31d548a2b authored about 5 years ago
Remove report_log in favor of pytest-reportlog

Fix #6180

d2ea9e2db58dfb6c5a3c2981bfd062369e51fbf3 authored about 5 years ago
Preparing release version 5.2.3 (#6190)

Preparing release version 5.2.3

e856638ba086fcf5bebf1bebea32d5cf78de87b4 authored about 5 years ago
Issue a warning to prepare change of 'junit_family' default val… (#6186)

Issue a warning to prepare change of 'junit_family' default value

99f487864caf2a4a1d75a3d322304e7b3b03d01b authored about 5 years ago
Adjust CHANGELOG

dd9a27cf543c39f91039ecd7aa6aa595b3e79330 authored about 5 years ago
Update text in PR template (#6188)

d4e4ab5b3d8bd8fd51430536808bfa3a0805689d authored about 5 years ago
Update advice about _called_from_test. (#6168)

Update advice about _called_from_test.

e2a0987156c7b95b27f454d3b8710fd36aa13758 authored about 5 years ago
Update advice about _called_from_test.

Instead of giving an example of using sys and then, at the end,
advising not to use sys, just gi...

bd68c2a3dca6e6aadd1f9a0e4810f53256d4f6a8 authored about 5 years ago
Preparing release version 5.2.3

5e8c47faad91ccf49897a290efd62bcac1971ff7 authored about 5 years ago
Make whole checklist a comment to avoid incomplete TODOs in PRs

48ec7d28c6485da6dc220cd9a5acdbcfc6615ff1 authored about 5 years ago
Update text in PR template

350c27c8b441ea73a3c5bf45500659da364f090c authored about 5 years ago
Merge pull request #6187 from blueyed/minor

Minor fixes

2fc7d04fc380e0ee6f43538504ec36c896688c47 authored about 5 years ago
Show a better message when 'request' is used in parametrize (#6184)

Show a better message when 'request' is used in parametrize

92d6a0500b9f528a9adcd6bbcda46ebf9b6baf03 authored about 5 years ago
Show a better message when 'request' is used in parametrize

Fix #6183

6f2c0fd2e8e8154c8129900c9a1c650068811404 authored about 5 years ago
Issue a warning to prepare change of 'junit_family' default value

Fix #6179

2a67637accc9b5f25b4d3fda3b99ad37cfcab18b authored about 5 years ago
terminal: fix/remove wrong typing for currentfspath

Can be -2, or py.path.local (not typed).

772dfc4f9d610ebd735be48fd1c0924384c94e04 authored about 5 years ago
fix typo in _issue_warning_captured doc

b3bb60468331d49ff3eaa3241adb9fa070c90d19 authored about 5 years ago
doc: s/_pytest.config.Parser/_pytest.config.argparsing.Parser/

55bc084dcc783bda88a221a5437a515df3e7b2ae authored about 5 years ago
Merge pull request #6176 from blueyed/assertoutcome

pytester: Hookrecorder: improve assertoutcome

f91bf48a40da5ee7f7c2a3c71ee56d854d35e983 authored about 5 years ago
Merge pull request #6181 from blueyed/maxfail-terminal-upstream

terminal: report ``session.shouldfail`` reason (``-x``)

a6e10cc2e3f3c9e400d9a03417d1186eee052730 authored about 5 years ago
Merge pull request #6171 from blueyed/rm-xfail

tests: remove test_nested_marks (xfail)

c232366f2ff17d72b3baee53c0260da2459a9702 authored about 5 years ago
terminal: report ``session.shouldfail`` reason (``-x``)

Via https://github.com/blueyed/pytest/pull/108.

b06f33f4748ee1bf928c01b4e12d5506a4e05870 authored about 5 years ago
pytester: Hookrecorder: improve assertoutcome

Before:

def assertoutcome(self, passed: int = 0, skipped: int = 0, failed: int = 0) -> ...

6ddf7c3d42efcf01c8641893e7331f9e33e6877d authored about 5 years ago
pytester: assert_outcomes: use/set __tracebackhide__ (#6172)

e2022a6d488bc809f30118a58df50525dd345c7e authored about 5 years ago
Merge pull request #6173 from brettcannon/patch-1

Delineate syntactically that the 'match' argument to 'raises' is keyword-only

55a58bcd3d15887610e1303f4076401bd16ba742 authored about 5 years ago
Delineate syntactically that the 'match' argument to 'raises' is keyword-only

0b40749c9826d67ff44044608778d6ccd763e95a authored about 5 years ago
Bring back explicit tear down

Otherwise 'normal' failures won't call teardown explicitly

59369651dbe6a3bac420e16dcded9ad095b1680b authored about 5 years ago
Merge pull request #6170 from blueyed/imp

filterwarnings: ignore DeprecationWarning from nose

1b84f099b6229a0bec181f4e7907327c197cb18c authored about 5 years ago
No need to call tearDown on expected failures

- Isolate logic for getting expected exceptions
- Use original method name, as users see it when...

f7b1de70c037d0ca43adc25966677d5a78034abc authored about 5 years ago
setup.cfg: fix check-manifest ignore [ci skip] (#6156)

setup.cfg: fix check-manifest ignore [ci skip]

adccb63de01965ff873038fa2b1bacfa7dbaf049 authored about 5 years ago
pytester: assert_outcomes: use/set __tracebackhide__

86e9ae39f0ff0f16179d3e1d25674445432cfaef authored about 5 years ago
A bit more typing around Node (#6167)

dad4985be1fde2fc2bdc83ae65034c43f3ce42aa authored about 5 years ago
tests: remove test_nested_marks (xfail)

It currently fails with a TypeError, and was not updated since 2013 -
therefore it can be assume...

fc1c015c6b79ead0d76793cf0b7ae155b365f3a6 authored about 5 years ago
filterwarnings: ignore DeprecationWarning from nose

This comes via hypothesis:

```
% COLUMNS=80 p testing/python/metafunc.py::TestMetafunc::test_id...

4c7d971f13a3912a23398b3eea562178d5d5ec76 authored about 5 years ago
Merge pull request #6149 from bluetech/cached-property

Add a @cached_property implementation

b352e34938726e13fd8b0e5d5912535e29e6592c authored about 5 years ago
A bit more typing around Node

3ef8aa8173eb10c5a57fd38b4df7d3ba959e8b5f authored about 5 years ago
_compare_eq_iterable: use AlwaysDispatchingPrettyPrinter (#6151)

abcedd6095054aa66aa4a5271959da0866c52266 authored about 5 years ago
Add a @cached_property implementation

This is a useful utility to abstract the caching property idiom.

It is in compat.py since event...

42a46ea78617b8e210636bc2f9d9bf06435b60fa authored about 5 years ago
unittest: do not use TestCase.debug() with `--pdb`

Fixes https://github.com/pytest-dev/pytest/issues/5991
Fixes https://github.com/pytest-dev/pytes...

04f27d4eb469fb9c76fd2d100564a0f7d30028df authored about 5 years ago
typing around terminal (#6157)

710e3c40e0e613a06eef62f58b3f7db9761ee868 authored about 5 years ago
[WIP] typing around terminal

0bbc032db0969efa42d35aa74a5a523bd977538d authored about 5 years ago
showversion: no need for `py.path.local` (#6163)

96c315e4393c67ae97911398b3f7df1b48ea02b6 authored about 5 years ago
showversion: no need for `py.path.local`

28edbaace4b5ebad5875d65eb518c29f495212e5 authored about 5 years ago
setup.cfg: fix check-manifest ignore [ci skip]

41604eeb3e70c35103b5260b20419a817a0fe6ac authored over 5 years ago
Merge pull request #6152 from grlee77/module_name_in_id

use __name__ attribute in the parametrize id for modules as well

245e1f10e587931ce03ac414bc7230be76520f40 authored over 5 years ago
Add CHANGELOG for #6152

c16b121594fae69a1fb63dc8dff54332fec2b0a2 authored over 5 years ago
Two minor tweaks in MarkDecorator's implementation (#6150)

Two minor tweaks in MarkDecorator's implementation

04891048e18b046037627caf4b5a2665a40b5f02 authored over 5 years ago
Drop the "alias" helper used in MarkDecorator

It is a little too obscure IMO, but the reason I want to drop it is that
type checking has no ho...

84b2c81db4b998e41bc0d2583e4acbc47544e103 authored over 5 years ago
Drop redundant custom MarkDecorator __eq__ implementation

This is already covered by attrs.

Also, the custom implementation returns False when the types ...

984d90a811afc344518e64f8e8c8f300c69b8aaf authored over 5 years ago