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 suppress (exception)
 

Variables

 _hexadecimal
 
 _long_marker
 
 _unicode_marker
 
 collect_ignore
 

Function Documentation

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

Definition at line 41 of file conftest.py.

def conftest._sanitize_docstring (   thing)
private

Definition at line 150 of file conftest.py.

def conftest._sanitize_general (   s)
private

Definition at line 141 of file conftest.py.

def conftest._sanitize_message (   thing)
private

Definition at line 162 of file conftest.py.

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

Definition at line 36 of file conftest.py.

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

Definition at line 31 of file conftest.py.

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

Definition at line 116 of file conftest.py.

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

Definition at line 157 of file conftest.py.

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

Definition at line 191 of file conftest.py.

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

Definition at line 170 of file conftest.py.

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

Definition at line 176 of file conftest.py.

def conftest.pytest_configure ( )

Definition at line 198 of file conftest.py.

def conftest.suppress (   exception)
Suppress the desired exception

Definition at line 183 of file conftest.py.

Variable Documentation

conftest._hexadecimal
private

Definition at line 23 of file conftest.py.

conftest._long_marker
private

Definition at line 22 of file conftest.py.

conftest._unicode_marker
private

Definition at line 21 of file conftest.py.

conftest.collect_ignore

Definition at line 26 of file conftest.py.



gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:58