Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Homework second lesson #76

Conversation

KozyrevAndrey
Copy link

No description provided.

return FavouritePictureData(
user=create_user,
foreign_id=1,
url='https://www.youtube.com/watch?v=dQw4w9WgXcQ'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Угадал мелодию, не нажимая ссылки :-)

'cycle_number',
[1, 3, 9]
)
def test_by_user(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нравится, что тест с параметризацией проверяет несколько случаев с количеством «любимых» картинок 👍

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: название теста можно уточнить, чтобы контекст понятнее стал



@pytest.mark.django_db
def test_dashboard_view(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Эти действия делает анонимный пользователь? Тогда вроде @pytest.mark.django_db лишний

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants