Coverage for src/rsnapshot_docker_compose_backup/global_values.py: 78%

9 statements  

« prev     ^ index     » next       coverage.py v7.5.4, created at 2024-07-07 01:03 +0200

1import os 

2from pathlib import Path 

3from typing import Optional 

4 

5 

6folder: Path = Path(os.getcwd()) 

7config_file: Optional[Path] = None 

8 

9 

10def set_folder(path: Path) -> None: 

11 # pylint: disable=global-statement 

12 global folder 

13 folder = path 

14 

15 

16def set_config_file(file: Path) -> None: 

17 # pylint: disable=global-statement 

18 global config_file 

19 config_file = file