mirror of
https://github.com/copier-org/copier.git
synced 2025-05-05 15:32:54 +00:00
Adapt test_exclude_recursive_negate
This commit is contained in:
parent
51db236ad8
commit
a1455c975a
@ -1 +0,0 @@
|
||||
This file must not exist in copy.
|
@ -1,3 +1,3 @@
|
||||
_exclude:
|
||||
- bad
|
||||
- "!bad/good"
|
||||
- "*.txt"
|
||||
- "!copy_me.txt"
|
||||
|
0
tests/demo_exclude_negate/copy_me.txt
Normal file
0
tests/demo_exclude_negate/copy_me.txt
Normal file
0
tests/demo_exclude_negate/do_not_copy_me.txt
Normal file
0
tests/demo_exclude_negate/do_not_copy_me.txt
Normal file
@ -12,8 +12,9 @@ def test_exclude_recursive(tmp_path):
|
||||
|
||||
|
||||
def test_exclude_recursive_negate(tmp_path):
|
||||
"""Copy is done properly when excluding recursively."""
|
||||
"""Copy is done properly when exclude is negated for copy_me.txt."""
|
||||
src = f"{PROJECT_TEMPLATE}_exclude_negate"
|
||||
copy(src, tmp_path)
|
||||
assert (tmp_path / "bad").exists()
|
||||
assert (tmp_path / "bad").is_dir()
|
||||
assert (tmp_path / "copy_me.txt").exists()
|
||||
assert (tmp_path / "copy_me.txt").is_file()
|
||||
assert not (tmp_path / "do_not_copy_me.txt").exists()
|
||||
|
Loading…
x
Reference in New Issue
Block a user