Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
https://github.com/jpscaletti/siht disappeared, so these tests were failing now. Fixed by using own copier repo to test.
  • Loading branch information
Jairo Llopis authored and github-actions[bot] committed Jul 21, 2020
1 parent 544c248 commit 45c5f0d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions tests/test_copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,14 @@ def test_copy(tmp_path):


def test_copy_repo(tmp_path):
copier.copy("gh:jpscaletti/siht.git", tmp_path, vcs_ref="HEAD", quiet=True)
assert (tmp_path / "setup.py").exists()
copier.copy(
"gh:copier-org/copier.git",
tmp_path,
vcs_ref="HEAD",
quiet=True,
exclude=["*", "!README.*"],
)
assert (tmp_path / "README.md").exists()


def test_default_exclude(tmp_path):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_vcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_get_repo():


def test_clone():
tmp = vcs.clone("https://github.com/jpscaletti/siht.git")
tmp = vcs.clone("https://github.com/copier-org/copier.git")
assert tmp
assert exists(join(tmp, "setup.py"))
assert exists(join(tmp, "README.md"))
shutil.rmtree(tmp)

0 comments on commit 45c5f0d

Please sign in to comment.