Skip to content

Commit

Permalink
Add submodule to example
Browse files Browse the repository at this point in the history
  • Loading branch information
coretl committed Jan 24, 2024
1 parent 6c2cea3 commit ef71f8d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "python-copier-template-example"]
path = python-copier-template-example
url = [email protected]:DiamondLightSource/python-copier-template-example.git
[submodule "example"]
path = example
url = [email protected]:DiamondLightSource/python-copier-template-example.git
1 change: 1 addition & 0 deletions example
Submodule example added at 24c2b7
3 changes: 2 additions & 1 deletion tests/test_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from copier import run_copy

TOP = Path(__file__).absolute().parent.parent
INPUT = TOP / "python-copier-template-example"
INPUT = TOP / "example"
OUTPUT = TOP / "build" / "example"


Expand All @@ -20,6 +20,7 @@ def test_template():
vcs_ref="HEAD",
unsafe=True,
)
#
comparison = treecomp.diff_file_trees(INPUT, OUTPUT, ignore=[".copier-answers.yml"])
if comparison.diffs:
raise AssertionError(str(comparison))

0 comments on commit ef71f8d

Please sign in to comment.