-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/add tests for tasks and files api #101
Merged
ArtemBalandin81
merged 26 commits into
main
from
feature/add_tests_for_tasks_and_files_api
Dec 6, 2024
Merged
Feature/add tests for tasks and files api #101
ArtemBalandin81
merged 26 commits into
main
from
feature/add_tests_for_tasks_and_files_api
Dec 6, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…used_choice_041224
Зависимости до изменения:
|
AFTER UPDATING LIBRARIES:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
tests/test_routes/test_task.py
rtests/conftest.py
rresponse
в/api/tasks/my_tasks_todo
: почта пользователя и исполнителя совпадают - такого быть не должно.upd. Баг оперативно исправлен в:
src/api/endpoints/tasks.py
вasync def get_my_tasks_todo
добавленNone
return await task_service.perform_changed_schema(await task_service.get_my_tasks_todo(user.id), None, user)
в
@task_router.get(
добавлена зависимостьdependencies=[Depends(current_user)]
Добавлены тесты для тестирования сервиса работы с файлами в апи:
tests/test_routes/test_attached_files.py
В src/api/endpoints/files_attached.py
добавлены схемы ответовstatus.HTTP_401
иstatus.HTTP_403
;В эндпоинте неспользуемых файлов
async def get_files_unused
сменил рут сFILE_ID,
наMAIN_ROUTE
Небольшие изменения в тестах простоев:
tests/test_routes/test_suspension.py
starlette
"0.37.2 ">>> version = "0.41.3"fastapi
"0.111.0" >>> version = "0.115.6 "cryptography
"42.0.7" >>> version = 44.0.0 (wanted at least 43.0.1)python-multipart
>>> version = ??? wanted 0.0.18!!! - Removing jinja2 (3.1.4)
!!! - Removing orjson (3.10.3)
??? - Removing pygments (2.18.0)
TypeError: AsyncClient.__init__() got an unexpected keyword argument 'app'
в
tests/conftest.py
избавились от функцииdef start_application()
, объединив ее с:requirements
:poetry export --without-hashes > requirements.txt