def test_get_backupdir_path(tmp_path):
    'Returns backups Path named for default working directory.'
    os.chdir(tmp_path)
    Path(CONFIGFILE_NAME).write_text('config stuff')
    backdir = '_backups'
    datestr = '2020-01-03_1646'
    workingdir = Path('agenda')
    workingdir.mkdir()
    os.chdir(workingdir)
    actual = get_backupdir_path(backdir=backdir, now=datestr)
    expected = (((Path(tmp_path) / backdir) / str(workingdir)) / datestr)
    expected_explicit = (((Path(tmp_path) / '_backups') / 'agenda') / '2020-01-03_1646')
    assert (actual == expected)
    assert (actual == expected_explicit)
Returns backups Path named for default working directory.
def test_get_backupdir_path(tmp_path):
    
    os.chdir(tmp_path)
    Path(CONFIGFILE_NAME).write_text('config stuff')
    backdir = '_backups'
    datestr = '2020-01-03_1646'
    workingdir = Path('agenda')
    workingdir.mkdir()
    os.chdir(workingdir)
    actual = get_backupdir_path(backdir=backdir, now=datestr)
    expected = (((Path(tmp_path) / backdir) / str(workingdir)) / datestr)
    expected_explicit = (((Path(tmp_path) / '_backups') / 'agenda') / '2020-01-03_1646')
    assert (actual == expected)
    assert (actual == expected_explicit)