From edfe66f7f9fd2a15d0a452733f6b42a210d0143a Mon Sep 17 00:00:00 2001 From: Ben Felder <20211140+pykong@users.noreply.github.com> Date: Sun, 22 Sep 2019 20:08:10 +0200 Subject: [PATCH 1/2] Update test_copy.py --- tests/test_copy.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tests/test_copy.py b/tests/test_copy.py index dfe4fb0c8..c1c3cb7af 100644 --- a/tests/test_copy.py +++ b/tests/test_copy.py @@ -136,10 +136,3 @@ def test_pretend_option(dst): assert not (dst / "doc").exists() assert not (dst / "config.py").exists() assert not (dst / "pyproject.toml").exists() - - -def test_tasks(dst): - tasks = ["touch [[ myvar ]]/1.txt", "touch [[ myvar ]]/2.txt"] - render(dst, tasks=tasks) - assert (dst / DATA["myvar"] / "1.txt").exists() - assert (dst / DATA["myvar"] / "2.txt").exists() From 8618dfb6253acfae20af76d4e07aefa8bf280740 Mon Sep 17 00:00:00 2001 From: Ben Felder <20211140+pykong@users.noreply.github.com> Date: Sun, 22 Sep 2019 20:09:14 +0200 Subject: [PATCH 2/2] Update test_tasks.py --- tests/test_tasks.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/test_tasks.py b/tests/test_tasks.py index 4d5abc13b..19c9fb0d0 100644 --- a/tests/test_tasks.py +++ b/tests/test_tasks.py @@ -1,7 +1,16 @@ import copier +from .helpers import DATA, render -def test_execute_tasks(dst): + +def test_render_tasks(dst): + tasks = ["touch [[ myvar ]]/1.txt", "touch [[ myvar ]]/2.txt"] + render(dst, tasks=tasks) + assert (dst / DATA["myvar"] / "1.txt").exists() + assert (dst / DATA["myvar"] / "2.txt").exists() + + +def test_copy_tasks(dst): copier.copy("tests/demo_tasks", dst, quiet=True) assert (dst / "hello").exists() assert (dst / "hello").is_dir()