Classes | Functions | Variables
conftest Namespace Reference

Classes

class  Capture
 
class  Output
 
class  SanitizedString
 
class  Unordered
 

Functions

def _make_explanation (a, b)
 
def _sanitize_docstring (thing)
 
def _sanitize_general (s)
 
def _sanitize_message (thing)
 
def _split_and_sort (s)
 
def _strip_and_dedent (s)
 
def capture (capsys)
 
def doc ()
 
def gc_collect ()
 
def msg ()
 
def pytest_assertrepr_compare (op, left, right)
 
def pytest_configure ()
 
def pytest_report_header (config)
 
def use_multiprocessing_forkserver_on_linux ()
 

Variables

 _hexadecimal
 
 _long_marker
 
 autouse
 
 collect_ignore
 
 scope
 

Detailed Description

pytest configuration

Extends output capture as needed by pybind11: ignore constructors, optional unordered lines.
Adds docstring and exceptions message sanitizers.

Function Documentation

◆ _make_explanation()

def conftest._make_explanation (   a,
  b 
)
private
Explanation for a failed assert -- the a and b arguments are List[str]

Definition at line 60 of file conftest.py.

◆ _sanitize_docstring()

def conftest._sanitize_docstring (   thing)
private

Definition at line 170 of file conftest.py.

◆ _sanitize_general()

def conftest._sanitize_general (   s)
private

Definition at line 164 of file conftest.py.

◆ _sanitize_message()

def conftest._sanitize_message (   thing)
private

Definition at line 181 of file conftest.py.

◆ _split_and_sort()

def conftest._split_and_sort (   s)
private
For output which does not require specific line order

Definition at line 55 of file conftest.py.

◆ _strip_and_dedent()

def conftest._strip_and_dedent (   s)
private
For triple-quote strings

Definition at line 50 of file conftest.py.

◆ capture()

def conftest.capture (   capsys)
Extended `capsys` with context manager and custom equality operators

Definition at line 140 of file conftest.py.

◆ doc()

def conftest.doc ( )
Sanitize docstrings and add custom failure explanation

Definition at line 176 of file conftest.py.

◆ gc_collect()

def conftest.gc_collect ( )
Run the garbage collector twice (needed when running
reference counting tests with PyPy)

Definition at line 200 of file conftest.py.

◆ msg()

def conftest.msg ( )
Sanitize messages and add custom failure explanation

Definition at line 188 of file conftest.py.

◆ pytest_assertrepr_compare()

def conftest.pytest_assertrepr_compare (   op,
  left,
  right 
)
Hook to insert custom failure explanation

Definition at line 193 of file conftest.py.

◆ pytest_configure()

def conftest.pytest_configure ( )

Definition at line 207 of file conftest.py.

◆ pytest_report_header()

def conftest.pytest_report_header (   config)

Definition at line 212 of file conftest.py.

◆ use_multiprocessing_forkserver_on_linux()

def conftest.use_multiprocessing_forkserver_on_linux ( )

Definition at line 30 of file conftest.py.

Variable Documentation

◆ _hexadecimal

conftest._hexadecimal
private

Definition at line 44 of file conftest.py.

◆ _long_marker

conftest._long_marker
private

Definition at line 43 of file conftest.py.

◆ autouse

conftest.autouse

Definition at line 29 of file conftest.py.

◆ collect_ignore

conftest.collect_ignore

Definition at line 47 of file conftest.py.

◆ scope

conftest.scope

Definition at line 29 of file conftest.py.



gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:10:18