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

Detailed Description

Open static file by name.

Only read-only open modes are supported.

Example:

.. code-block:: python

def test_foo(open_file):
    with open_file('foo') as fp:
        ...

Definition at line 69 of file common.py.

Inheritance diagram for testsuite.plugins.common.OpenFileFixture:

Public Member Functions

typing.IO __call__ (self, types.PathOrStr filename, mode='r', buffering=-1, encoding='utf-8', errors=None)

Member Function Documentation

◆ __call__()

typing.IO testsuite.plugins.common.OpenFileFixture.__call__ ( self,
types.PathOrStr filename,
mode = 'r',
buffering = -1,
encoding = 'utf-8',
errors = None )

Definition at line 83 of file common.py.


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