MCPcopy Create free account

hub / github.com/pytest-dev/pytest / types & classes

Types & classes572 in github.com/pytest-dev/pytest

↓ 37 callersClassSource
An immutable object holding a source code fragment. When using Source(...), the source lines are deindented.
src/_pytest/_code/source.py:17
↓ 22 callersClassUsageError
Error in pytest usage or invocation.
src/_pytest/config/exceptions.py:5
↓ 21 callersClassFormattedExcinfo
Presenting information about failing Functions and Generators.
src/_pytest/_code/code.py:684
↓ 19 callersClassMonkeyPatch
Helper to conveniently monkeypatch attributes/items/environment variables/syspath. Returned by the :fixture:`monkeypatch` fixture. :vers
src/_pytest/monkeypatch.py:112
↓ 17 callersClassint
testing/io/test_saferepr.py:134
↓ 14 callersClassPytestPluginManager
A :py:class:`pluggy.PluginManager <pluggy.PluginManager>` with additional pytest-specific functionality: * Loading plugins from the command l
src/_pytest/config/__init__.py:343
↓ 12 callersClassLineMatcher
Flexible matching of text. This is a convenience class to test large texts like the output of commands. The constructor takes a list of
src/_pytest/pytester.py:1525
↓ 10 callersClassTerminalWriter
src/_pytest/_io/terminalwriter.py:41
↓ 8 callersClassFixtureRequest
A request for a fixture from a test or fixture function. A request object gives access to the requesting test context and has an optional ``p
src/_pytest/fixtures.py:433
↓ 8 callersClassSysModulesSnapshot
src/_pytest/pytester.py:633
↓ 6 callersClassFoo
doc/en/example/assertion/failure_demo.py:124
↓ 6 callersClassTerminalReporter
src/_pytest/terminal.py:310
↓ 5 callersClassExitCode
Encodes the valid exit codes by pytest. Currently users and plugins may supply other exit codes as well. .. versionadded:: 5.0
src/_pytest/config/__init__.py:84
↓ 5 callersClassFrame
Wrapper around a Python frame holding f_locals and f_globals in which expressions can be evaluated.
src/_pytest/_code/code.py:129
↓ 5 callersClassLogXML
src/_pytest/junitxml.py:461
↓ 5 callersClassPytestConfigWarning
Warning emitted for configuration issues.
src/_pytest/warning_types.py:32
↓ 5 callersClassReprFileLocation
src/_pytest/_code/code.py:1154
↓ 5 callersClassSimpleDataObject
testing/test_assertion.py:906
↓ 5 callersClassSysPathsSnapshot
src/_pytest/pytester.py:647
↓ 5 callersClasscatching_logs
Context manager that prepares the whole logging machinery properly.
src/_pytest/logging.py:299
↓ 4 callersClassCaptureResult
The result of :method:`CaptureFixture.readouterr`.
src/_pytest/capture.py:475
↓ 4 callersClassColoredLevelFormatter
A logging formatter which colorizes the %(levelname)..s part of the log format passed to __init__.
src/_pytest/logging.py:49
↓ 4 callersClassMockConfig
testing/python/metafunc.py:253
↓ 4 callersClassPytestWarning
Base class for all warnings emitted by pytest.
src/_pytest/warning_types.py:11
↓ 4 callersClassStash
r"""``Stash`` is a type-safe heterogeneous mutable mapping that allows keys and value types to be defined separately from where it (the ``Stas
src/_pytest/stash.py:27
↓ 4 callersClassWarningsRecorder
A context manager to record raised warnings. Adapted from `warnings.catch_warnings`.
src/_pytest/recwarn.py:158
↓ 3 callersClassA
testing/test_assertion.py:729
↓ 3 callersClassA
testing/code/test_source.py:221
↓ 3 callersClassArgumentError
Raised if an Argument instance is created with invalid or inconsistent arguments.
src/_pytest/config/argparsing.py:203
↓ 3 callersClassAssertionRewritingHook
PEP302/PEP451 import hook which rewrites asserts.
src/_pytest/assertion/rewrite.py:57
↓ 3 callersClassAssertionState
State for the assertion plugin.
src/_pytest/assertion/__init__.py:80
↓ 3 callersClassCaptureManager
The capture plugin. Manages that the appropriate capture method is enabled/disabled during collection and each test phase (setup, call, teard
src/_pytest/capture.py:618
↓ 3 callersClassCode
Wrapper around Python code objects.
src/_pytest/_code/code.py:60
↓ 3 callersClassFastFilesCompleter
Fast file completer class.
src/_pytest/_argcomplete.py:73
↓ 3 callersClassHookRecorder
Record all hooks called in a plugin manager. Hook recorders are created by :class:`Pytester`. This wraps all the hook calls in the plugin ma
src/_pytest/pytester.py:245
↓ 3 callersClassMark
src/_pytest/mark/structures.py:200
↓ 3 callersClassMarkGenerator
Factory for :class:`MarkDecorator` objects - exposed as a ``pytest.mark`` singleton instance. Example:: import pytest @py
src/_pytest/mark/structures.py:466
↓ 3 callersClassReprFuncArgs
src/_pytest/_code/code.py:1180
↓ 3 callersClassTraceback
Traceback objects encapsulate and offer higher level access to Traceback entries.
src/_pytest/_code/code.py:323
↓ 3 callersClassnumpy_like
testing/code/test_excinfo.py:1430
↓ 2 callersClassA
testing/test_nose.py:35
↓ 2 callersClassA
testing/test_assertrewrite.py:692
↓ 2 callersClassArgument
Class that mimics the necessary behaviour of optparse.Option. It's currently a least effort implementation and ignoring choices and integer p
src/_pytest/config/argparsing.py:218
↓ 2 callersClassCallSpec2
A planned parameterized invocation of a test function. Calculated during collection for a given test function's Metafunc. Once collection is
src/_pytest/python.py:927
↓ 2 callersClassCollectReport
Collection report object. Reports can contain arbitrary extra attributes.
src/_pytest/reports.py:365
↓ 2 callersClassConftestImportFailure
src/_pytest/config/__init__.py:106
↓ 2 callersClassCwdSnapshot
src/_pytest/pytester.py:625
↓ 2 callersClassDontReadFromInput
src/_pytest/capture.py:188
↓ 2 callersClassDummyEntryPoint
testing/test_config.py:973
↓ 2 callersClassErrorsHelper
testing/test_compat.py:152
↓ 2 callersClassExceptionChainRepr
src/_pytest/_code/code.py:1000
↓ 2 callersClassFakeConfig
testing/test_tmpdir.py:35
↓ 2 callersClassFilesCompleter
File completer class, optionally takes a list of allowed extensions.
testing/test_argcomplete.py:35
↓ 2 callersClassFixtureDef
A container for a factory definition.
src/_pytest/fixtures.py:966
↓ 2 callersClassFixtureManager
pytest fixture definitions and information is stored and managed from this class. During collection fm.parsefactories() is called multiple ti
src/_pytest/fixtures.py:1388
↓ 2 callersClassMarkDecorator
A decorator for applying a mark on test functions and classes. ``MarkDecorators`` are created with ``pytest.mark``:: mark1 = pytest.mark
src/_pytest/mark/structures.py:270
↓ 2 callersClassMultiCapture
src/_pytest/capture.py:523
↓ 2 callersClassObjWithErrorInRepr
testing/code/test_excinfo.py:546
↓ 2 callersClassOptionGroup
A group of options shown in its own section.
src/_pytest/config/argparsing.py:340
↓ 2 callersClassOtherDataObject
testing/test_assertion.py:922
↓ 2 callersClassParseError
The expression contains invalid syntax. :param column: The column in the line where the error occurred (1-based). :param message: A descripti
src/_pytest/mark/expression.py:57
↓ 2 callersClassPathAwareHookProxy
this helper wraps around hook callers until pluggy supports fixingcalls, this one will do it currently doesn't return full hook caller p
src/_pytest/config/compat.py:21
↓ 2 callersClassPercentStyleMultiline
A logging style with special support for multiline messages. If the message of a record consists of multiple lines, this style formats the me
src/_pytest/logging.py:110
↓ 2 callersClassPseudoPlugin
testing/test_config.py:1079
↓ 2 callersClassPytestAssertRewriteWarning
Warning emitted by the pytest assert rewrite module.
src/_pytest/warning_types.py:18
↓ 2 callersClassPytestCollectionWarning
Warning emitted when pytest is not able to collect a file or symbol in a module.
src/_pytest/warning_types.py:39
↓ 2 callersClassPytestDeprecationWarning
Warning class for features that will be removed in a future version.
src/_pytest/warning_types.py:45
↓ 2 callersClassPython
doc/en/example/multipython.py:25
↓ 2 callersClassReport
testing/test_junitxml.py:1186
↓ 2 callersClassReprEntry
src/_pytest/_code/code.py:1074
↓ 2 callersClassReprEntryNative
src/_pytest/_code/code.py:1064
↓ 2 callersClassReprExceptionInfo
src/_pytest/_code/code.py:1020
↓ 2 callersClassReprLocals
src/_pytest/_code/code.py:1171
↓ 2 callersClassReprTraceback
src/_pytest/_code/code.py:1030
↓ 2 callersClassReprTracebackNative
src/_pytest/_code/code.py:1056
↓ 2 callersClassRunResult
The result of running a command from :class:`~pytest.Pytester`.
src/_pytest/pytester.py:519
↓ 2 callersClassSafeRepr
repr.Repr that limits the resulting size of repr() and includes information on exceptions raised during the call.
src/_pytest/_io/saferepr.py:38
↓ 2 callersClassScope
Represents one of the possible fixture scopes in pytest. Scopes are ordered from lower to higher, that is: ->>> higher ->>>
src/_pytest/scope.py:22
↓ 2 callersClassSkipped
src/_pytest/outcomes.py:54
↓ 2 callersClassSysCapture
src/_pytest/capture.py:310
↓ 2 callersClassT
testing/python/fixtures.py:83
↓ 2 callersClassTempPathFactory
Factory for temporary directories under the common base temp directory. The base directory can be configured using the ``--basetemp`` option.
src/_pytest/tmpdir.py:25
↓ 2 callersClassWarningsChecker
src/_pytest/recwarn.py:231
↓ 2 callersClass_LiveLoggingStreamHandler
A logging StreamHandler used by the live logging feature: it will write a newline before the first log message in each test. During live logg
src/_pytest/logging.py:761
↓ 2 callersClass_PytestWrapper
Dummy wrapper around a function object for internal use only. Used to correctly unwrap the underlying function object when we are creating fi
src/_pytest/compat.py:256
↓ 1 callersClassA
testing/test_config.py:1234
↓ 1 callersClassA
testing/test_pluginmanager.py:85
↓ 1 callersClassA
testing/python/raises.py:23
↓ 1 callersClassA
testing/python/fixtures.py:44
↓ 1 callersClassA
testing/python/metafunc.py:274
↓ 1 callersClassA
testing/io/test_saferepr.py:27
↓ 1 callersClassAlwaysDispatchingPrettyPrinter
PrettyPrinter that always dispatches (regardless of width).
src/_pytest/_io/saferepr.py:110
↓ 1 callersClassApproxDecimal
Perform approximate comparisons where the expected value is a Decimal.
src/_pytest/python_api.py:511
↓ 1 callersClassApproxScalar
Perform approximate comparisons where the expected value is a single number.
src/_pytest/python_api.py:382
↓ 1 callersClassAssertionRewriter
Assertion rewriting implementation. The main entrypoint is to call .run() with an ast.Module instance, this will then find all the assert sta
src/_pytest/assertion/rewrite.py:612
↓ 1 callersClassBar
doc/en/example/assertion/failure_demo.py:153
↓ 1 callersClassBroken
testing/test_doctest.py:1517
↓ 1 callersClassBrokenObj
testing/io/test_saferepr.py:89
↓ 1 callersClassBrokenRepr
testing/io/test_saferepr.py:37
↓ 1 callersClassBrokenReprException
testing/io/test_saferepr.py:44
next →1–100 of 572, ranked by callers