Skip to content

Добавлены юнит-тесты и фикстуры для Stellar Burgers#723

Open
n1kolay-zhurkin wants to merge 1 commit intoYandex-Practicum:mainfrom
n1kolay-zhurkin:develop1
Open

Добавлены юнит-тесты и фикстуры для Stellar Burgers#723
n1kolay-zhurkin wants to merge 1 commit intoYandex-Practicum:mainfrom
n1kolay-zhurkin:develop1

Conversation

@n1kolay-zhurkin
Copy link

Протестирована программа Stellar Burgers.
Сделаны юнит-тесты.
Использованы метод моки и параметризация.

assert bun.price == price

def test_get_name(self, black_bun):
assert black_bun.get_name() == "black bun"

Choose a reason for hiding this comment

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

Можно лучше: во всех тестах лучше выносить тестовые данные во внешний модуль (например, data). Это позволит облегчить их поддержку

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants