pytest 9.0.2
Version history | Download JSON
-
PyPI https://pypi.org/project/pytest/ Repository https://github.com/pytest-dev/pytest -
py.typed -
Coverage
%%{init: {"pie": {"textPosition": 0.85}, "theme": "neutral", "themeVariables": {"pieStrokeWidth": "1px"}}}%% pie title "Typed" : 1157 "Any" : 21 "Untyped" : 192 -
Typables
%%{init: {"pie": {"textPosition": 0.85}, "theme": "neutral", "themeVariables": {"pieStrokeWidth": "1px"}}}%% pie title "functions" : 54 "classes" : 1211 "other" : 8- 12 functions (+6 overloads)
- 42 parameters
- 64 classes
- 453 methods (+19 overloads)
- 693 parameters
- 59 properties
- 453 methods (+19 overloads)
- 32 modules
- 8 attrs
- 12 functions (+6 overloads)
Modules
Incomplete Annotations
_pytest.cacheprovider (2 missing, 0 any)
| Symbol | Typable | Typed | Any | |
|---|---|---|---|---|
meth |
Cache.get |
3 | 1 | 0 |
_pytest.capture (1 missing, 0 any)
| Symbol | Typable | Typed | Any | |
|---|---|---|---|---|
attr |
CaptureFixture.request |
1 | 0 | 0 |
_pytest.config (20 missing, 4 any)
| Symbol | Typable | Typed | Any | |
|---|---|---|---|---|
attr |
hookimpl |
1 | 0 | 0 |
attr |
hookspec |
1 | 0 | 0 |
meth |
Config.getini |
2 | 2 | 1 |
meth |
Config._getini_unknown_type |
4 | 3 | 0 |
meth |
Config._getini |
2 | 1 | 0 |
meth |
Config._getini_ini |
6 | 5 | 1 |
meth |
Config._getini_toml |
6 | 5 | 1 |
meth |
Config.getoption |
4 | 3 | 1 |
meth |
Config.getvalue |
3 | 1 | 0 |
meth |
Config.getvalueorskip |
3 | 1 | 0 |
attr |
Config.option |
1 | 0 | 0 |
attr |
Config.invocation_params |
1 | 0 | 0 |
attr |
Config.pluginmanager |
1 | 0 | 0 |
attr |
Config.stash |
1 | 0 | 0 |
attr |
Config.trace |
1 | 0 | 0 |
attr |
Config.args_source |
1 | 0 | 0 |
attr |
cmdline.main |
1 | 0 | 0 |
meth |
PytestPluginManager.parse_hookspec_opts |
3 | 2 | 0 |
meth |
PytestPluginManager.getplugin |
2 | 1 | 0 |
_pytest.config.argparsing (3 missing, 4 any)
| Symbol | Typable | Typed | Any | |
|---|---|---|---|---|
meth |
Parser.addoption |
3 | 3 | 1 |
meth |
Parser.addini |
6 | 6 | 1 |
attr |
Parser.optparser |
1 | 0 | 0 |
meth |
OptionGroup.addoption |
3 | 3 | 1 |
meth |
OptionGroup._addoption |
3 | 3 | 1 |
attr |
OptionGroup.name |
1 | 0 | 0 |
attr |
OptionGroup.parser |
1 | 0 | 0 |
_pytest.doctest (4 missing, 0 any)
| Symbol | Typable | Typed | Any | |
|---|---|---|---|---|
attr |
DoctestItem.runner |
1 | 0 | 0 |
attr |
DoctestItem.dtest |
1 | 0 | 0 |
attr |
DoctestItem.obj |
1 | 0 | 0 |
attr |
DoctestItem.fixturenames |
1 | 0 | 0 |
_pytest.fixtures (17 missing, 2 any)
| Symbol | Typable | Typed | Any | |
|---|---|---|---|---|
attr |
FixtureLookupError.argname |
1 | 0 | 0 |
attr |
FixtureLookupError.request |
1 | 0 | 0 |
attr |
FixtureLookupError.fixturestack |
1 | 0 | 0 |
attr |
FixtureLookupError.msg |
1 | 0 | 0 |
func |
yield_fixture |
8 | 0 | 0 |
meth |
FixtureRequest.getfixturevalue |
2 | 2 | 1 |
prop |
FixtureRequest.node |
1 | 0 | 0 |
prop |
FixtureRequest.function |
1 | 0 | 0 |
prop |
FixtureRequest.cls |
1 | 0 | 0 |
prop |
FixtureRequest.instance |
1 | 0 | 0 |
prop |
FixtureRequest.module |
1 | 0 | 0 |
attr |
FixtureRequest.param |
1 | 1 | 1 |
_pytest.legacypath (60 missing, 0 any)
| Symbol | Typable | Typed | Any | |
|---|---|---|---|---|
meth |
Testdir.make_hook_recorder |
2 | 1 | 0 |
meth |
Testdir.makefile |
4 | 1 | 0 |
meth |
Testdir.makeconftest |
2 | 1 | 0 |
meth |
Testdir.makeini |
2 | 1 | 0 |
meth |
Testdir.makepyprojecttoml |
2 | 1 | 0 |
meth |
Testdir.makepyfile |
3 | 1 | 0 |
meth |
Testdir.maketxtfile |
3 | 1 | 0 |
meth |
Testdir.syspathinsert |
2 | 1 | 0 |
meth |
Testdir.mkdir |
2 | 1 | 0 |
meth |
Testdir.mkpydir |
2 | 1 | 0 |
meth |
Testdir.copy_example |
2 | 1 | 0 |
meth |
Testdir.getnode |
3 | 2 | 0 |
meth |
Testdir.getpathnode |
2 | 0 | 0 |
meth |
Testdir.runitem |
2 | 0 | 0 |
meth |
Testdir.inline_runsource |
3 | 0 | 0 |
meth |
Testdir.inline_genitems |
2 | 0 | 0 |
meth |
Testdir.inline_run |
4 | 1 | 0 |
meth |
Testdir.runpytest_inprocess |
3 | 1 | 0 |
meth |
Testdir.runpytest |
3 | 1 | 0 |
meth |
Testdir.parseconfig |
2 | 1 | 0 |
meth |
Testdir.parseconfigure |
2 | 1 | 0 |
meth |
Testdir.getitem |
3 | 0 | 0 |
meth |
Testdir.getitems |
2 | 0 | 0 |
meth |
Testdir.getmodulecol |
4 | 0 | 0 |
meth |
Testdir.popen |
6 | 0 | 0 |
meth |
Testdir.run |
4 | 1 | 0 |
meth |
Testdir.runpython |
2 | 1 | 0 |
meth |
Testdir.runpython_c |
2 | 0 | 0 |
meth |
Testdir.runpytest_subprocess |
3 | 1 | 0 |
prop |
Testdir.request |
1 | 0 | 0 |
prop |
Testdir.plugins |
2 | 0 | 0 |
_pytest.main (3 missing, 0 any)
| Symbol | Typable | Typed | Any | |
|---|---|---|---|---|
attr |
Session.testsfailed |
1 | 0 | 0 |
attr |
Session.testscollected |
1 | 0 | 0 |
attr |
Session.trace |
1 | 0 | 0 |
_pytest.mark.structures (1 missing, 0 any)
| Symbol | Typable | Typed | Any | |
|---|---|---|---|---|
attr |
MARK_GEN |
1 | 0 | 0 |
_pytest.monkeypatch (1 missing, 0 any)
| Symbol | Typable | Typed | Any | |
|---|---|---|---|---|
meth |
MonkeyPatch.syspath_prepend |
2 | 1 | 0 |
_pytest.nodes (3 missing, 0 any)
| Symbol | Typable | Typed | Any | |
|---|---|---|---|---|
meth |
Item.init |
7 | 4 | 0 |
_pytest.outcomes (0 missing, 1 any)
| Symbol | Typable | Typed | Any | |
|---|---|---|---|---|
func |
importorskip |
5 | 5 | 1 |
_pytest.pytester (24 missing, 3 any)
| Symbol | Typable | Typed | Any | |
|---|---|---|---|---|
meth |
LineMatcher._log |
2 | 1 | 0 |
attr |
LineMatcher.lines |
1 | 0 | 0 |
meth |
RecordedHookCall.init |
3 | 2 | 0 |
meth |
RecordedHookCall.getattr |
2 | 1 | 0 |
meth |
RunResult.parse_summary_nouns |
2 | 1 | 0 |
attr |
RunResult.outlines |
1 | 0 | 0 |
attr |
RunResult.errlines |
1 | 0 | 0 |
attr |
RunResult.stdout |
1 | 0 | 0 |
attr |
RunResult.stderr |
1 | 0 | 0 |
attr |
RunResult.duration |
1 | 0 | 0 |
meth |
Pytester.makepyfile |
3 | 1 | 0 |
meth |
Pytester.maketxtfile |
3 | 1 | 0 |
meth |
Pytester.runitem |
2 | 2 | 1 |
meth |
Pytester.inline_runsource |
3 | 2 | 0 |
meth |
Pytester.inline_genitems |
2 | 1 | 0 |
meth |
Pytester.inline_run |
4 | 3 | 0 |
meth |
Pytester.runpytest_inprocess |
3 | 3 | 1 |
meth |
Pytester.runpytest |
3 | 3 | 1 |
meth |
Pytester.getmodulecol |
4 | 2 | 0 |
meth |
Pytester.popen |
6 | 4 | 0 |
meth |
Pytester._dump_lines |
3 | 0 | 0 |
_pytest.python (29 missing, 0 any)
| Symbol | Typable | Typed | Any | |
|---|---|---|---|---|
meth |
Module._getobj |
1 | 0 | 0 |
meth |
Metafunc.init |
7 | 5 | 0 |
attr |
Metafunc.definition |
1 | 0 | 0 |
attr |
Metafunc.config |
1 | 0 | 0 |
attr |
Metafunc.module |
1 | 0 | 0 |
attr |
Metafunc.function |
1 | 0 | 0 |
attr |
Metafunc.fixturenames |
1 | 0 | 0 |
attr |
Metafunc.cls |
1 | 0 | 0 |
meth |
Package.init |
7 | 4 | 0 |
meth |
Class.from_parent |
5 | 1 | 0 |
meth |
Class.newinstance |
1 | 0 | 0 |
meth |
Function.init |
10 | 8 | 0 |
meth |
Function.from_parent |
3 | 1 | 0 |
meth |
Function._getinstance |
1 | 0 | 0 |
meth |
Function._getobj |
1 | 0 | 0 |
prop |
Function.function |
1 | 0 | 0 |
prop |
Function.instance |
1 | 0 | 0 |
prop |
Function._pyfuncitem |
1 | 0 | 0 |
attr |
Function.originalname |
1 | 0 | 0 |
attr |
Function.fixturenames |
1 | 0 | 0 |
attr |
Function.callspec |
1 | 0 | 0 |
_pytest.python_api (3 missing, 0 any)
| Symbol | Typable | Typed | Any | |
|---|---|---|---|---|
func |
approx |
5 | 2 | 0 |
_pytest.raises (3 missing, 2 any)
| Symbol | Typable | Typed | Any | |
|---|---|---|---|---|
attr |
RaisesGroup.allow_unwrapped |
1 | 0 | 0 |
attr |
RaisesGroup.is_baseexception |
1 | 0 | 0 |
attr |
RaisesExc.expected_exceptions |
1 | 0 | 0 |
func |
raises |
7 | 7 | 2 |
_pytest.recwarn (0 missing, 4 any)
| Symbol | Typable | Typed | Any | |
|---|---|---|---|---|
func |
deprecated_call |
5 | 5 | 2 |
func |
warns |
6 | 6 | 2 |
_pytest.reports (4 missing, 0 any)
| Symbol | Typable | Typed | Any | |
|---|---|---|---|---|
meth |
TestReport.init |
13 | 12 | 0 |
attr |
TestReport.user_properties |
1 | 0 | 0 |
meth |
CollectReport.init |
7 | 6 | 0 |
attr |
CollectReport.result |
1 | 0 | 0 |
_pytest.subtests (0 missing, 1 any)
| Symbol | Typable | Typed | Any | |
|---|---|---|---|---|
meth |
Subtests.test |
3 | 3 | 1 |
_pytest.terminal (12 missing, 0 any)
| Symbol | Typable | Typed | Any | |
|---|---|---|---|---|
meth |
TerminalReporter.write_ensure_prefix |
4 | 3 | 0 |
meth |
TerminalReporter._getfailureheadline |
2 | 0 | 0 |
meth |
TerminalReporter._getcrashline |
2 | 0 | 0 |
meth |
TerminalReporter.getreports |
2 | 1 | 0 |
attr |
TerminalReporter.config |
1 | 0 | 0 |
attr |
TerminalReporter.startpath |
1 | 0 | 0 |
attr |
TerminalReporter.reportchars |
1 | 0 | 0 |
attr |
TerminalReporter.foldskipped |
1 | 0 | 0 |
attr |
TerminalReporter.hasmarkup |
1 | 0 | 0 |
attr |
TerminalReporter.isatty |
1 | 0 | 0 |
_pytest.tmpdir (1 missing, 0 any)
| Symbol | Typable | Typed | Any | |
|---|---|---|---|---|
meth |
TempPathFactory.init |
7 | 6 | 0 |
pytest (1 missing, 0 any)
| Symbol | Typable | Typed | Any | |
|---|---|---|---|---|
attr |
set_trace |
1 | 0 | 0 |
Type-Ignore Comments
| Flavor | Count |
|---|---|
type: ignore[override] |
4 |
type: ignore |
3 |
type: ignore[no-overload-impl, override] |
2 |
type: ignore[attr-defined] |
1 |
type: ignore[overload-overlap] |
1 |