Skip to content

Commit

Permalink
Merge pull request #1 from pykong/moving_test_tasks
Browse files Browse the repository at this point in the history
Update test_copy.py
  • Loading branch information
pykong authored Sep 22, 2019
2 parents 7716271 + 8618dfb commit 88954bf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
7 changes: 0 additions & 7 deletions tests/test_copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
11 changes: 10 additions & 1 deletion tests/test_tasks.py
Original file line number Diff line number Diff line change
@@ -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()
Expand Down

0 comments on commit 88954bf

Please sign in to comment.