MCPcopy Create free account

hub / github.com/LondonAppDeveloper/c2-recipe-app-api-2 / functions

Functions111 in github.com/LondonAppDeveloper/c2-recipe-app-api-2

↓ 39 callersMethodcreate
Create a recipe.
app/recipe/serializers.py:64
↓ 23 callersFunctioncreate_recipe
Create and return a sample recipe.
app/recipe/tests/test_recipe_api.py:42
↓ 13 callersMethodcreate_user
Create, save and return a new user.
app/core/models.py:27
↓ 12 callersFunctiondetail_url
Create and return a recipe detail URL.
app/recipe/tests/test_recipe_api.py:32
↓ 4 callersFunctioncreate_user
Create and return a new user.
app/user/tests/test_user_api.py:17
↓ 4 callersFunctioncreate_user
Create and return a new user.
app/recipe/tests/test_recipe_api.py:57
↓ 3 callersMethodcreate
Create and return a user with encrypted password.
app/user/serializers.py:21
↓ 2 callersMethod_get_or_create_ingredients
Handle getting or creating ingredients as needed.
app/recipe/serializers.py:54
↓ 2 callersMethod_get_or_create_tags
Handle getting or creating tags as needed.
app/recipe/serializers.py:44
↓ 2 callersMethod_params_to_ints
Convert a list of strings to integers.
app/recipe/views.py:52
↓ 2 callersMethodcreate_superuser
Create and return a new superuser.
app/core/models.py:37
↓ 2 callersFunctioncreate_user
Create a return a new user.
app/core/tests/test_models.py:13
↓ 2 callersFunctioncreate_user
Create and return user.
app/recipe/tests/test_ingredients_api.py:29
↓ 2 callersFunctioncreate_user
Create and return a user.
app/recipe/tests/test_tags_api.py:29
↓ 2 callersFunctiondetail_url
Create and return an ingredient detail URL.
app/recipe/tests/test_ingredients_api.py:24
↓ 2 callersFunctiondetail_url
Create and return a tag detail url.
app/recipe/tests/test_tags_api.py:24
↓ 2 callersFunctionimage_upload_url
Create and return an image upload URL.
app/recipe/tests/test_recipe_api.py:37
↓ 1 callersMethodget_object
Retrieve and return the authenticated user.
app/user/views.py:31
↓ 1 callersFunctionmain
Run administrative tasks.
app/manage.py:7
↓ 1 callersMethodupdate
Update recipe.
app/recipe/serializers.py:74
Method__str__
(self)
app/core/models.py:74
Method__str__
(self)
app/core/models.py:86
Method__str__
(self)
app/core/models.py:98
Functionadd
Add x and y and return result.
app/app/calc.py:6
Methodget_queryset
Retrieve recipes for authenticated user.
app/recipe/views.py:56
Methodget_queryset
Filter queryset to authenticated user.
app/recipe/views.py:117
Methodget_serializer_class
Return the serializer class for request.
app/recipe/views.py:72
Methodhandle
Entrypoint for command.
app/core/management/commands/wait_for_db.py:15
Functionhealth_check
Returns successful response.
app/core/views.py:9
Methodperform_create
Create a new recipe.
app/recipe/views.py:81
Functionrecipe_image_file_path
Generate file path for new recipe image.
app/core/models.py:16
MethodsetUp
(self)
app/user/tests/test_user_api.py:25
MethodsetUp
(self)
app/user/tests/test_user_api.py:123
MethodsetUp
Create user and client.
app/core/tests/test_admin.py:13
MethodsetUp
(self)
app/recipe/tests/test_recipe_api.py:65
MethodsetUp
(self)
app/recipe/tests/test_recipe_api.py:78
MethodsetUp
(self)
app/recipe/tests/test_recipe_api.py:426
MethodsetUp
(self)
app/recipe/tests/test_ingredients_api.py:37
MethodsetUp
(self)
app/recipe/tests/test_ingredients_api.py:50
MethodsetUp
(self)
app/recipe/tests/test_tags_api.py:37
MethodsetUp
(self)
app/recipe/tests/test_tags_api.py:50
Functionsubtract
Subtract x from y and return result.
app/app/calc.py:11
MethodtearDown
(self)
app/recipe/tests/test_recipe_api.py:435
Methodtest_add_numbers
Test adding numbers together.
app/app/tests.py:12
Methodtest_auth_required
Test auth is required to call API.
app/recipe/tests/test_recipe_api.py:68
Methodtest_auth_required
Test auth is required for retrieving ingredients.
app/recipe/tests/test_ingredients_api.py:40
Methodtest_auth_required
Test auth is required for retrieving tags.
app/recipe/tests/test_tags_api.py:40
Methodtest_clear_recipe_ingredients
Test clearing a recipes ingredients.
app/recipe/tests/test_recipe_api.py:369
Methodtest_clear_recipe_tags
Test clearing a recipes tags.
app/recipe/tests/test_recipe_api.py:283
Methodtest_create_ingredient
Test creating an ingredient is successful.
app/core/tests/test_models.py:83
Methodtest_create_ingredient_on_update
Test creating an ingredient when updating a recipe.
app/recipe/tests/test_recipe_api.py:342
Methodtest_create_recipe
Test creating a recipe is successful.
app/core/tests/test_models.py:60
Methodtest_create_recipe
Test creating a recipe.
app/recipe/tests/test_recipe_api.py:118
Methodtest_create_recipe_with_existing_ingredient
Test creating a new recipe with existing ingredient.
app/recipe/tests/test_recipe_api.py:318
Methodtest_create_recipe_with_existing_tags
Test creating a recipe with existing tag.
app/recipe/tests/test_recipe_api.py:232
Methodtest_create_recipe_with_new_ingredients
Test creating a recipe with new ingredients.
app/recipe/tests/test_recipe_api.py:296
Methodtest_create_recipe_with_new_tags
Test creating a recipe with new tags.
app/recipe/tests/test_recipe_api.py:210
Methodtest_create_superuser
Test creating a superuser.
app/core/tests/test_models.py:50
Methodtest_create_tag
Test creating a tag is successful.
app/core/tests/test_models.py:76
Methodtest_create_tag_on_update
Test create tag when updating a recipe.
app/recipe/tests/test_recipe_api.py:256
Methodtest_create_token_bad_credentials
Test returns error if credentials invalid.
app/user/tests/test_user_api.py:87
Methodtest_create_token_blank_password
Test posting a blank password returns an error.
app/user/tests/test_user_api.py:105
Methodtest_create_token_email_not_found
Test error returned if user not found for given email.
app/user/tests/test_user_api.py:97
Methodtest_create_token_for_user
Test generates token for valid credentials.
app/user/tests/test_user_api.py:69
Methodtest_create_user_page
Test the create user page works.
app/core/tests/test_admin.py:42
Methodtest_create_user_success
Test creating a user is successful.
app/user/tests/test_user_api.py:28
Methodtest_create_user_with_email_successful
Test creating a user with an email is successful.
app/core/tests/test_models.py:21
Methodtest_delete_ingredient
Test deleting an ingredient.
app/recipe/tests/test_ingredients_api.py:92
Methodtest_delete_recipe
Test deleting a recipe successful.
app/recipe/tests/test_recipe_api.py:189
Methodtest_delete_tag
Test deleting a tag.
app/recipe/tests/test_tags_api.py:92
Methodtest_edit_user_page
Test the edit user page works.
app/core/tests/test_admin.py:35
Methodtest_filter_by_ingredients
Test filtering recipes by ingredients.
app/recipe/tests/test_recipe_api.py:402
Methodtest_filter_by_tags
Test filtering recipes by tags.
app/recipe/tests/test_recipe_api.py:382
Methodtest_filter_ingredients_assigned_to_recipes
Test listing ingedients to those assigned to recipes.
app/recipe/tests/test_ingredients_api.py:103
Methodtest_filter_tags_assigned_to_recipes
Test listing tags to those assigned to recipes.
app/recipe/tests/test_tags_api.py:103
Methodtest_filtered_ingredients_unique
Test filtered ingredients returns a unique list.
app/recipe/tests/test_ingredients_api.py:122
Methodtest_filtered_tags_unique
Test filtered tags returns a unique list.
app/recipe/tests/test_tags_api.py:122
Methodtest_full_update
Test full update of recipe.
app/recipe/tests/test_recipe_api.py:152
Methodtest_get_recipe_detail
Test get recipe detail.
app/recipe/tests/test_recipe_api.py:108
Methodtest_health_check
Test health check API.
app/core/tests/test_health_check.py:14
Methodtest_ingredients_limited_to_user
Test list of ingredients is limited to authenticated user.
app/recipe/tests/test_ingredients_api.py:67
Methodtest_new_user_email_normalized
Test email is normalized for new users.
app/core/tests/test_models.py:33
Methodtest_new_user_without_email_raises_error
Test that creating a user without an email raises a ValueError.
app/core/tests/test_models.py:45
Methodtest_partial_update
Test partial update of a recipe.
app/recipe/tests/test_recipe_api.py:133
Methodtest_password_too_short_error
Test an error is returned if password less than 5 chars.
app/user/tests/test_user_api.py:54
Methodtest_post_me_not_allowed
Test POST is not allowed for the me endpoint.
app/user/tests/test_user_api.py:142
Methodtest_recipe_file_name_uuid
Test generating image path.
app/core/tests/test_models.py:94
Methodtest_recipe_list_limited_to_user
Test list of recipes is limited to authenticated user.
app/recipe/tests/test_recipe_api.py:95
Methodtest_recipe_other_users_recipe_error
Test trying to delete another users recipe gives error.
app/recipe/tests/test_recipe_api.py:199
Methodtest_retrieve_ingredients
Test retrieving a list of ingredients.
app/recipe/tests/test_ingredients_api.py:55
Methodtest_retrieve_profile_success
Test retrieving profile for logged in user.
app/user/tests/test_user_api.py:132
Methodtest_retrieve_recipes
Test retrieving a list of recipes.
app/recipe/tests/test_recipe_api.py:83
Methodtest_retrieve_tags
Test retrieving a list of tags.
app/recipe/tests/test_tags_api.py:55
Methodtest_retrieve_user_unauthorized
Test authentication is required for users.
app/user/tests/test_user_api.py:113
Methodtest_subtract_numbers
Test subtracting numbers.
app/app/tests.py:18
Methodtest_tags_limited_to_user
Test list of tags is limited to authenticated user.
app/recipe/tests/test_tags_api.py:67
Methodtest_update_ingredient
Test updating an ingredient.
app/recipe/tests/test_ingredients_api.py:80
Methodtest_update_recipe_assign_ingredient
Test assigning an existing ingredient when updating a recipe.
app/recipe/tests/test_recipe_api.py:354
Methodtest_update_recipe_assign_tag
Test assigning an existing tag when updating a recipe.
app/recipe/tests/test_recipe_api.py:268
Methodtest_update_tag
Test updating a tag.
app/recipe/tests/test_tags_api.py:80
next →1–100 of 111, ranked by callers