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:
...
Public Member Functions | |
| typing.IO | __call__ (self, types.PathOrStr filename, mode='r', buffering=-1, encoding='utf-8', errors=None) |
| typing.IO testsuite.plugins.common.OpenFileFixture.__call__ | ( | self, | |
| types.PathOrStr | filename, | ||
| mode = 'r', | |||
| buffering = -1, | |||
| encoding = 'utf-8', | |||
| errors = None ) |