Beispiel #1
0
def test_uninstallTemplate_symlink(freshBackend, datadir):
    B, tmp_path = freshBackend
    t1 = Path(datadir['t1'])
    B.installTemplate('t1', t1, True)
    B.uninstallTemplate('t1')
    target_templates = tmp_path / 'templates/t1'
    assert not target_templates.exists()
Beispiel #2
0
def test_installTemplate_over(freshBackend, datadir):
    B, tmp_path = freshBackend
    t1 = Path(datadir['t1'])
    t2 = Path(datadir['t2'])
    B.installTemplate('t1', t1)
    B.installTemplate('t1', t2)
    target_templates = tmp_path / 'templates/t1'
    assertDirsEqual(target_templates, t2)
Beispiel #3
0
def test_installTemplate_symlink(freshBackend, datadir):
    B, tmp_path = freshBackend
    t1 = Path(datadir['t1'])
    B.installTemplate('t1', t1, True)
    target_templates = tmp_path / 'templates/t1'
    assertDirsEqual(target_templates, t1)