Skip to content

Commit ce6dd06

Browse files
committed
fix tests
Copier's run_copy on a template, version controlled with git, by default searches for the latest tag conforming to PEP-440 (https://peps.python.org/pep-0440/#public-version-identifiers) and uses that to generate. This meant that it was still using the 0.4.0 version. We now set it to HEAD explicitly in the tests. Note that we didn't see this failure before in the separate repo because there was no history there.
1 parent 7c89fe9 commit ce6dd06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def project_env_bin_dir(tmp_path_factory):
4343

4444
@pytest.fixture(scope='session')
4545
def baked_with_development_dependencies(tmp_path_factory, project_env_bin_dir):
46-
project = run_copy(src_path=str(here()), dst_path=str(tmp_path_factory.mktemp('projects')), defaults=True)
46+
project = run_copy(src_path=str(here()), dst_path=str(tmp_path_factory.mktemp('projects')), defaults=True, vcs_ref="HEAD")
4747
project_dir = project.dst_path
4848

4949
bin_dir = project_env_bin_dir

0 commit comments

Comments
 (0)