Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ types & classes
Types & classes
572 in github.com/pytest-dev/pytest
⨍
Functions
4,602
◇
Types & classes
572
↳
Endpoints
16
↓ 37 callers
Class
Source
An immutable object holding a source code fragment. When using Source(...), the source lines are deindented.
src/_pytest/_code/source.py:17
↓ 22 callers
Class
UsageError
Error in pytest usage or invocation.
src/_pytest/config/exceptions.py:5
↓ 21 callers
Class
FormattedExcinfo
Presenting information about failing Functions and Generators.
src/_pytest/_code/code.py:684
↓ 19 callers
Class
MonkeyPatch
Helper to conveniently monkeypatch attributes/items/environment variables/syspath. Returned by the :fixture:`monkeypatch` fixture. :vers
src/_pytest/monkeypatch.py:112
↓ 17 callers
Class
int
testing/io/test_saferepr.py:134
↓ 14 callers
Class
PytestPluginManager
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 callers
Class
LineMatcher
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 callers
Class
TerminalWriter
src/_pytest/_io/terminalwriter.py:41
↓ 8 callers
Class
FixtureRequest
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 callers
Class
SysModulesSnapshot
src/_pytest/pytester.py:633
↓ 6 callers
Class
Foo
doc/en/example/assertion/failure_demo.py:124
↓ 6 callers
Class
TerminalReporter
src/_pytest/terminal.py:310
↓ 5 callers
Class
ExitCode
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 callers
Class
Frame
Wrapper around a Python frame holding f_locals and f_globals in which expressions can be evaluated.
src/_pytest/_code/code.py:129
↓ 5 callers
Class
LogXML
src/_pytest/junitxml.py:461
↓ 5 callers
Class
PytestConfigWarning
Warning emitted for configuration issues.
src/_pytest/warning_types.py:32
↓ 5 callers
Class
ReprFileLocation
src/_pytest/_code/code.py:1154
↓ 5 callers
Class
SimpleDataObject
testing/test_assertion.py:906
↓ 5 callers
Class
SysPathsSnapshot
src/_pytest/pytester.py:647
↓ 5 callers
Class
catching_logs
Context manager that prepares the whole logging machinery properly.
src/_pytest/logging.py:299
↓ 4 callers
Class
CaptureResult
The result of :method:`CaptureFixture.readouterr`.
src/_pytest/capture.py:475
↓ 4 callers
Class
ColoredLevelFormatter
A logging formatter which colorizes the %(levelname)..s part of the log format passed to __init__.
src/_pytest/logging.py:49
↓ 4 callers
Class
MockConfig
testing/python/metafunc.py:253
↓ 4 callers
Class
PytestWarning
Base class for all warnings emitted by pytest.
src/_pytest/warning_types.py:11
↓ 4 callers
Class
Stash
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 callers
Class
WarningsRecorder
A context manager to record raised warnings. Adapted from `warnings.catch_warnings`.
src/_pytest/recwarn.py:158
↓ 3 callers
Class
A
testing/test_assertion.py:729
↓ 3 callers
Class
A
testing/code/test_source.py:221
↓ 3 callers
Class
ArgumentError
Raised if an Argument instance is created with invalid or inconsistent arguments.
src/_pytest/config/argparsing.py:203
↓ 3 callers
Class
AssertionRewritingHook
PEP302/PEP451 import hook which rewrites asserts.
src/_pytest/assertion/rewrite.py:57
↓ 3 callers
Class
AssertionState
State for the assertion plugin.
src/_pytest/assertion/__init__.py:80
↓ 3 callers
Class
CaptureManager
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 callers
Class
Code
Wrapper around Python code objects.
src/_pytest/_code/code.py:60
↓ 3 callers
Class
FastFilesCompleter
Fast file completer class.
src/_pytest/_argcomplete.py:73
↓ 3 callers
Class
HookRecorder
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 callers
Class
Mark
src/_pytest/mark/structures.py:200
↓ 3 callers
Class
MarkGenerator
Factory for :class:`MarkDecorator` objects - exposed as a ``pytest.mark`` singleton instance. Example:: import pytest @py
src/_pytest/mark/structures.py:466
↓ 3 callers
Class
ReprFuncArgs
src/_pytest/_code/code.py:1180
↓ 3 callers
Class
Traceback
Traceback objects encapsulate and offer higher level access to Traceback entries.
src/_pytest/_code/code.py:323
↓ 3 callers
Class
numpy_like
testing/code/test_excinfo.py:1430
↓ 2 callers
Class
A
testing/test_nose.py:35
↓ 2 callers
Class
A
testing/test_assertrewrite.py:692
↓ 2 callers
Class
Argument
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 callers
Class
CallSpec2
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 callers
Class
CollectReport
Collection report object. Reports can contain arbitrary extra attributes.
src/_pytest/reports.py:365
↓ 2 callers
Class
ConftestImportFailure
src/_pytest/config/__init__.py:106
↓ 2 callers
Class
CwdSnapshot
src/_pytest/pytester.py:625
↓ 2 callers
Class
DontReadFromInput
src/_pytest/capture.py:188
↓ 2 callers
Class
DummyEntryPoint
testing/test_config.py:973
↓ 2 callers
Class
ErrorsHelper
testing/test_compat.py:152
↓ 2 callers
Class
ExceptionChainRepr
src/_pytest/_code/code.py:1000
↓ 2 callers
Class
FakeConfig
testing/test_tmpdir.py:35
↓ 2 callers
Class
FilesCompleter
File completer class, optionally takes a list of allowed extensions.
testing/test_argcomplete.py:35
↓ 2 callers
Class
FixtureDef
A container for a factory definition.
src/_pytest/fixtures.py:966
↓ 2 callers
Class
FixtureManager
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 callers
Class
MarkDecorator
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 callers
Class
MultiCapture
src/_pytest/capture.py:523
↓ 2 callers
Class
ObjWithErrorInRepr
testing/code/test_excinfo.py:546
↓ 2 callers
Class
OptionGroup
A group of options shown in its own section.
src/_pytest/config/argparsing.py:340
↓ 2 callers
Class
OtherDataObject
testing/test_assertion.py:922
↓ 2 callers
Class
ParseError
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 callers
Class
PathAwareHookProxy
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 callers
Class
PercentStyleMultiline
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 callers
Class
PseudoPlugin
testing/test_config.py:1079
↓ 2 callers
Class
PytestAssertRewriteWarning
Warning emitted by the pytest assert rewrite module.
src/_pytest/warning_types.py:18
↓ 2 callers
Class
PytestCollectionWarning
Warning emitted when pytest is not able to collect a file or symbol in a module.
src/_pytest/warning_types.py:39
↓ 2 callers
Class
PytestDeprecationWarning
Warning class for features that will be removed in a future version.
src/_pytest/warning_types.py:45
↓ 2 callers
Class
Python
doc/en/example/multipython.py:25
↓ 2 callers
Class
Report
testing/test_junitxml.py:1186
↓ 2 callers
Class
ReprEntry
src/_pytest/_code/code.py:1074
↓ 2 callers
Class
ReprEntryNative
src/_pytest/_code/code.py:1064
↓ 2 callers
Class
ReprExceptionInfo
src/_pytest/_code/code.py:1020
↓ 2 callers
Class
ReprLocals
src/_pytest/_code/code.py:1171
↓ 2 callers
Class
ReprTraceback
src/_pytest/_code/code.py:1030
↓ 2 callers
Class
ReprTracebackNative
src/_pytest/_code/code.py:1056
↓ 2 callers
Class
RunResult
The result of running a command from :class:`~pytest.Pytester`.
src/_pytest/pytester.py:519
↓ 2 callers
Class
SafeRepr
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 callers
Class
Scope
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 callers
Class
Skipped
src/_pytest/outcomes.py:54
↓ 2 callers
Class
SysCapture
src/_pytest/capture.py:310
↓ 2 callers
Class
T
testing/python/fixtures.py:83
↓ 2 callers
Class
TempPathFactory
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 callers
Class
WarningsChecker
src/_pytest/recwarn.py:231
↓ 2 callers
Class
_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 callers
Class
_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 callers
Class
A
testing/test_config.py:1234
↓ 1 callers
Class
A
testing/test_pluginmanager.py:85
↓ 1 callers
Class
A
testing/python/raises.py:23
↓ 1 callers
Class
A
testing/python/fixtures.py:44
↓ 1 callers
Class
A
testing/python/metafunc.py:274
↓ 1 callers
Class
A
testing/io/test_saferepr.py:27
↓ 1 callers
Class
AlwaysDispatchingPrettyPrinter
PrettyPrinter that always dispatches (regardless of width).
src/_pytest/_io/saferepr.py:110
↓ 1 callers
Class
ApproxDecimal
Perform approximate comparisons where the expected value is a Decimal.
src/_pytest/python_api.py:511
↓ 1 callers
Class
ApproxScalar
Perform approximate comparisons where the expected value is a single number.
src/_pytest/python_api.py:382
↓ 1 callers
Class
AssertionRewriter
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 callers
Class
Bar
doc/en/example/assertion/failure_demo.py:153
↓ 1 callers
Class
Broken
testing/test_doctest.py:1517
↓ 1 callers
Class
BrokenObj
testing/io/test_saferepr.py:89
↓ 1 callers
Class
BrokenRepr
testing/io/test_saferepr.py:37
↓ 1 callers
Class
BrokenReprException
testing/io/test_saferepr.py:44
next →
1–100 of 572, ranked by callers