-
Notifications
You must be signed in to change notification settings - Fork 3
Added user full name for comments #155
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
Conversation
Coverage Report
Summary
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| result.total = len(result.comments) | ||
| result.comments = [comment_validator.model_validate(comment) for comment in result.comments] | ||
|
|
||
| # Получаем ФИО пользователя |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
забирать имя из юзердаты при создании комментария, а не при выводе
| lecturer_id: int | ||
| like_count: int | ||
| dislike_count: int | ||
| user_full_name: str | None = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
поменять на user_fullname название
| assert getattr(nonanonymous_comment, k, None) == v # Есть ли изменения в БД | ||
|
|
||
|
|
||
| @pytest.mark.parametrize("is_own_comment", [True, False]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
здесь все неправильно
фикстуры user нет в test/conftest.py из-за этого вылетает ошибка при использовании pytest
Изменения
Добавил в get_comments получение фамилии и имени комментатора.
Check-List
blackиisortдля Back-End илиPrettierдля Front-End?