def test_get_backupdir_path_raise_exception_if_rootdir_not_found(tmp_path):
    'Raises exception if no rootdir is found (rootdir is None).'
    os.chdir(tmp_path)
    with pytest.raises(SystemExit):
        get_backupdir_path()
Raises exception if no rootdir is found (rootdir is None).
def test_get_backupdir_path_raise_exception_if_rootdir_not_found(tmp_path):
    
    os.chdir(tmp_path)
    with pytest.raises(SystemExit):
        get_backupdir_path()