userver: testsuite.plugins.common.LoadFixture Class Reference
Loading...
Searching...
No Matches
testsuite.plugins.common.LoadFixture Class Reference

Detailed Description

Load file from static directory.

Example:

.. code-block:: python

def test_something(load):
    data = load('filename')

:return: :py:class:LoadFixture callable instance.

Definition at line 93 of file common.py.

Inheritance diagram for testsuite.plugins.common.LoadFixture:

Public Member Functions

bytes|str|None __call__ (self, types.PathOrStr filename, encoding='utf-8', errors=None, *, missing_ok=False)

Member Function Documentation

◆ __call__()

bytes | str | None testsuite.plugins.common.LoadFixture.__call__ ( self,
types.PathOrStr filename,
encoding = 'utf-8',
errors = None,
* ,
missing_ok = False )

Definition at line 106 of file common.py.


The documentation for this class was generated from the following file: