예제 #1
0
def test_map_dir_does_not_exist_after_remove_shortcut(mapped_doubler):
    m = mapped_doubler.map(range(2))
    map_dir = m._map_dir

    assert map_dir.exists()

    htmap.remove(m.tag)

    assert not map_dir.exists()
예제 #2
0
def test_remove_shortcut_on_nonexistent_map_dir_fails_silently_if_not_exist_ok_set(
):
    htmap.remove("no-such-tag", not_exist_ok=True)
예제 #3
0
def test_remove_shortcut_on_nonexistent_map_dir_raises():
    with pytest.raises(htmap.exceptions.TagNotFound):
        htmap.remove("no-such-tag", not_exist_ok=False)