Skip to content

Commit e6fbf45

Browse files
committed
Updated docs image, cookiecutter params and tests.yml file name
1 parent 7da374b commit e6fbf45

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: tests
1+
name: Run tests
22

33
on:
44
push:

cookiecutter.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"project_name": "Base Project",
3-
"use_fastapi_users": false
2+
"project_name": "my_project_name",
3+
"experimental_fastapi_users_template": false
44
}
39.9 KB
Loading

hooks/post_gen_project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from shutil import copytree, rmtree
99

1010
PROJECT_NAME = "{{ cookiecutter.project_name }}"
11-
USE_FASTAPI_USERS = "{{ cookiecutter.use_fastapi_users }}"
11+
USE_FASTAPI_USERS = "{{ cookiecutter.experimental_fastapi_users_template }}"
1212
TEMPLATES = ["template_fastapi_users", "template_minimal"]
1313

1414

@@ -38,7 +38,7 @@ def create_env_file_and_remove_env_template():
3838
elif USE_FASTAPI_USERS in falsy:
3939
used_template = "template_minimal"
4040
else:
41-
raise ValueError(f"use_fastapi_users param must be in {truthy + falsy}")
41+
raise ValueError(f"'experimental_fastapi_users_template' param must be in {truthy + falsy}")
4242

4343
copy_choosen_template_to_main_dir(used_template=used_template)
4444
create_env_file_and_remove_env_template()

tests/create_fastapi_users_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def main():
1515
no_input=True,
1616
extra_context={
1717
"project_name": "fastapi_users_project",
18-
"use_fastapi_users": True,
18+
"experimental_fastapi_users_template": True,
1919
},
2020
)
2121

tests/create_minimal_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def main():
1515
no_input=True,
1616
extra_context={
1717
"project_name": "minimal_project",
18-
"use_fastapi_users": False,
18+
"experimental_fastapi_users_template": False,
1919
},
2020
)
2121

0 commit comments

Comments
 (0)