Skip to content

Commit

Permalink
Updated docs image, cookiecutter params and tests.yml file name
Browse files Browse the repository at this point in the history
  • Loading branch information
rafsaf committed May 7, 2022
1 parent 181430b commit eb7507e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cookiecutter.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"project_name": "Base Project",
"use_fastapi_users": false
"project_name": "my_project_name",
"experimental_fastapi_users_template": false
}
Binary file modified docs/template-minimal-openapi-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from shutil import copytree, rmtree

PROJECT_NAME = "{{ cookiecutter.project_name }}"
USE_FASTAPI_USERS = "{{ cookiecutter.use_fastapi_users }}"
USE_FASTAPI_USERS = "{{ cookiecutter.experimental_fastapi_users_template }}"
TEMPLATES = ["template_fastapi_users", "template_minimal"]


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

copy_choosen_template_to_main_dir(used_template=used_template)
create_env_file_and_remove_env_template()
2 changes: 1 addition & 1 deletion tests/create_fastapi_users_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def main():
no_input=True,
extra_context={
"project_name": "fastapi_users_project",
"use_fastapi_users": True,
"experimental_fastapi_users_template": True,
},
)

Expand Down
2 changes: 1 addition & 1 deletion tests/create_minimal_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def main():
no_input=True,
extra_context={
"project_name": "minimal_project",
"use_fastapi_users": False,
"experimental_fastapi_users_template": False,
},
)

Expand Down

0 comments on commit eb7507e

Please sign in to comment.