diff --git a/.gitignore b/.gitignore index 1973f6f..40f4502 100644 --- a/.gitignore +++ b/.gitignore @@ -173,4 +173,3 @@ history_images/ #logs logs/django* *minio - diff --git a/docs/schema.yml b/docs/schema.yml index e7f8995..48d0581 100644 --- a/docs/schema.yml +++ b/docs/schema.yml @@ -6,7 +6,7 @@ info: paths: /api/v1/achievements/: get: - operationId: achievements_list + operationId: api_v1_achievements_list description: Выводит список достижений summary: Список достижений tags: @@ -24,7 +24,7 @@ paths: description: '' /api/v1/health/: get: - operationId: health_retrieve + operationId: api_v1_health_retrieve description: Проверка работы АПИ summary: Проверка работы tags: @@ -41,7 +41,7 @@ paths: description: '' /api/v1/history/: get: - operationId: history_list + operationId: api_v1_history_list description: Выводит историю тренировок summary: История тренировок tags: @@ -58,7 +58,7 @@ paths: $ref: '#/components/schemas/History' description: '' post: - operationId: history_create + operationId: api_v1_history_create description: Сохраняет выполненную тренировку summary: Сохранение выполненной тренировки tags: @@ -88,9 +88,9 @@ paths: description: '' /api/v1/me/: get: - operationId: me_retrieve + operationId: api_v1_me_retrieve tags: - - me + - api security: - jwtAuth: [] responses: @@ -101,9 +101,9 @@ paths: $ref: '#/components/schemas/Me' description: '' patch: - operationId: me_partial_update + operationId: api_v1_me_partial_update tags: - - me + - api requestBody: content: application/json: @@ -125,9 +125,9 @@ paths: $ref: '#/components/schemas/Me' description: '' delete: - operationId: me_destroy + operationId: api_v1_me_destroy tags: - - me + - api security: - jwtAuth: [] responses: @@ -135,9 +135,9 @@ paths: description: No response body /api/v1/resend_code/: post: - operationId: resend_code_create + operationId: api_v1_resend_code_create tags: - - resend_code + - api security: - jwtAuth: [] - {} @@ -146,9 +146,9 @@ paths: description: No response body /api/v1/token/refresh/: post: - operationId: token_refresh_create + operationId: api_v1_token_refresh_create tags: - - token + - api requestBody: content: application/json: @@ -173,7 +173,7 @@ paths: description: '' /api/v1/training/: get: - operationId: training_list + operationId: api_v1_training_list description: Выводит список тренировок summary: Список тренировок tags: @@ -191,7 +191,7 @@ paths: description: '' /api/v1/update/: post: - operationId: update_create + operationId: api_v1_update_create description: Обновляет заморозки у пользователя и сохраняет часовой пояс summary: Обновляет заморозки у пользователя и сохраняет часовой пояс tags: @@ -207,9 +207,9 @@ paths: description: '' /api/v1/user/: post: - operationId: user_create + operationId: api_v1_user_create tags: - - user + - api requestBody: content: application/json: diff --git a/test/conftest.py b/test/conftest.py index 65230c5..669436f 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -5,7 +5,7 @@ from rest_framework.test import APIClient from rest_framework_simplejwt.tokens import RefreshToken -from running.models import Achievement, UserAchievement +from running.models import Achievement, UserAchievement # noqa User = get_user_model()