mirror of
https://github.com/copier-org/copier.git
synced 2025-05-05 23:42:55 +00:00
20 lines
574 B
Python
20 lines
574 B
Python
from copier.main import copy
|
|
|
|
from .helpers import PROJECT_TEMPLATE
|
|
|
|
|
|
def test_exclude_recursive(tmp_path):
|
|
"""Copy is done properly when excluding recursively."""
|
|
src = f"{PROJECT_TEMPLATE}_exclude"
|
|
copy(src, tmp_path)
|
|
assert not (tmp_path / "bad").exists()
|
|
assert not (tmp_path / "bad").is_dir()
|
|
|
|
|
|
def test_exclude_recursive_negate(tmp_path):
|
|
"""Copy is done properly when excluding recursively."""
|
|
src = f"{PROJECT_TEMPLATE}_exclude_negate"
|
|
copy(src, tmp_path)
|
|
assert (tmp_path / "bad").exists()
|
|
assert (tmp_path / "bad").is_dir()
|