Skip to content

Commit 22e6e34

Browse files
committed
Merge branch '160-subpackage' of github.com:NLeSC/python-template into 160-subpackage
2 parents d9ae1d9 + 9f93602 commit 22e6e34

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_project.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def run(args: Sequence[str], dirpath: os.PathLike) -> subprocess.CompletedProces
2424

2525

2626
@pytest.fixture
27-
def baked_withdevdeps(cookies):
27+
def baked_with_development_dependencies(cookies):
2828
result = cookies.bake()
2929
env_output = run(['python3', '-m', 'venv', 'env'], result.project)
3030
assert env_output.returncode == 0
@@ -36,17 +36,17 @@ def baked_withdevdeps(cookies):
3636
return result.project, env_bin
3737

3838

39-
def test_pytest(baked_withdevdeps):
40-
project_dir, env_bin = baked_withdevdeps
39+
def test_pytest(baked_with_development_dependencies):
40+
project_dir, env_bin = baked_with_development_dependencies
4141
pytest_output = run([f'{env_bin}pytest'], project_dir)
4242
assert pytest_output.returncode == 0
4343
assert '== 3 passed in' in pytest_output.stdout
4444
assert (project_dir / 'coverage.xml').exists()
4545
assert (project_dir / 'htmlcov/index.html').exists()
4646

4747

48-
def test_subpackage(baked_withdevdeps):
49-
project_dir, env_bin = baked_withdevdeps
48+
def test_subpackage(baked_with_development_dependencies):
49+
project_dir, env_bin = baked_with_development_dependencies
5050
subpackage = (project_dir / 'my_python_package' / 'mysub')
5151
subpackage.mkdir()
5252
(subpackage / '__init__.py').write_text('FOO = "bar"', encoding="utf-8")

0 commit comments

Comments
 (0)