python_humble_utils.vendor package

Submodules

python_humble_utils.vendor.pytest module

python_humble_utils.vendor.pytest.generate_tmp_file_path(tmpdir_factory, file_name_with_extension: str, tmp_dir_path: Optional[pathlib.Path] = None) → pathlib.Path[source]

Generate file path relative to a temporary directory.

Parameters:
  • tmpdir_factory – py.test’s tmpdir_factory fixture.
  • file_name_with_extension – file name with extension e.g. file_name.ext.
  • tmp_dir_path – path to directory (relative to the temporary one created by tmpdir_factory) where the generated file path should reside. # noqa
Returns:

file path.

Module contents