tests/test_airflow_renv_operator.py
def project_path():
    """Provide a project path with a valid renv directory structure."""
    with TemporaryDirectory(prefix='airflow_renv_operator_') as temp_dir:
        temp_dir_path = Path(temp_dir)
        renv_dir = temp_dir_path / 'renv'
        renv_dir.mkdir()
        activate_script = renv_dir / 'activate.R'
        activate_script.touch()
        renv_lock = temp_dir_path / 'renv.lock'
        renv_lock.touch()
        yield temp_dir_path
Provide a project path with a valid renv directory structure.
Provide a project path with a valid renv directory structure.
Provide a project path with a valid renv directory structure .
def project_path():
    with TemporaryDirectory(prefix='airflow_renv_operator_') as temp_dir:
        temp_dir_path = Path(temp_dir)
        renv_dir = temp_dir_path / 'renv'
        renv_dir.mkdir()
        activate_script = renv_dir / 'activate.R'
        activate_script.touch()
        renv_lock = temp_dir_path / 'renv.lock'
        renv_lock.touch()
        yield temp_dir_path
def project_path ( ) : with TemporaryDirectory ( prefix = 'airflow_renv_operator_' ) as temp_dir : temp_dir_path = Path ( temp_dir ) renv_dir = temp_dir_path / 'renv' renv_dir . mkdir ( ) activate_script = renv_dir / 'activate.R' activate_script . touch ( ) renv_lock = temp_dir_path / 'renv.lock' renv_lock . touch ( ) yield temp_dir_path
Provide a project path with a valid renv directory structure.
Provide a project path with a valid renv directory structure .
"""Provide a project path with a valid renv directory structure."""