Skip to content

Commit b2b013b

Browse files
committed
Fix CI
1 parent c0d5e4d commit b2b013b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

tests/test_integration.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ cd "$PROJECT_NAME"
2525

2626
# Create new venv:
2727
python -m venv .venv
28+
# shellcheck disable=SC1091
2829
. .venv/bin/activate
2930
pip install -U pip
3031

tests/test_project_generation.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ def test_with_default_configuration(
5454

5555
assert baked_project.exit_code == 0
5656
assert baked_project.exception is None
57-
assert baked_project.project.basename == context['project_name']
58-
assert baked_project.project.isdir()
57+
assert baked_project.project_path.name == context['project_name']
58+
assert baked_project.project_path.is_dir()
5959

6060

6161
def test_variables_replaced(cookies: Cookies, context: dict[str, str]) -> None:
6262
"""Ensures that all variables are replaced inside project files."""
6363
baked_project = cookies.bake(extra_context=context)
64-
paths = _build_files_list(baked_project.project)
64+
paths = _build_files_list(baked_project.project_path)
6565

6666
_assert_variables_replaced(paths)
6767

@@ -72,7 +72,7 @@ def test_dynamic_files_generated(
7272
) -> None:
7373
"""Ensures that dynamic files are generated."""
7474
baked_project = cookies.bake(extra_context=context)
75-
base_path = baked_project.project
75+
base_path = baked_project.project_path
7676
paths = _build_files_list(base_path)
7777

7878
dynamic_files = [
@@ -87,7 +87,7 @@ def test_pyproject_toml(cookies: Cookies, context: dict[str, str]) -> None:
8787
"""Ensures that all variables are replaced inside project files."""
8888
baked_project = cookies.bake(extra_context=context)
8989

90-
with (baked_project.project / 'pyproject.toml').open(
90+
with (baked_project.project_path / 'pyproject.toml').open(
9191
mode='rb',
9292
) as pyproject:
9393
poetry = tomli.load(pyproject)['tool']['poetry']

0 commit comments

Comments
 (0)