Skip to content

задание 1#714

Open
anastasilugovec wants to merge 3 commits intoYandex-Practicum:mainfrom
anastasilugovec:main
Open

задание 1#714
anastasilugovec wants to merge 3 commits intoYandex-Practicum:mainfrom
anastasilugovec:main

Conversation

@anastasilugovec
Copy link

No description provided.

Copy link

Choose a reason for hiding this comment

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

Нужно исправить: из финального проекта нужно удалить все файлы и папки, которые не относятся к решению задачи

ing.get_price.return_value = price
return ing

@pytest.fixture
Copy link

Choose a reason for hiding this comment

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

нужно исправить: в файле с тестами должны быть только тесты. фикстуры нужно расположить в conftest, а хэлперы в хэлперах

burg.move_ingredient(0, 2) # A -> позиция 2 -> [B, C, A]
assert burg.ingredients[0] is ing_b
assert burg.ingredients[1] is ing_c
assert burg.ingredients[2] is ing_a
Copy link

Choose a reason for hiding this comment

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

Нужно исправить: тест неатомарный. после ассерта уже не должно быть шагов, а каждый тест должен проверять какое то одно поведение приложения

assert f"(==== {bun.get_name()} ====)" in receipt
assert f"= {str(ing1.get_type()).lower()} {ing1.get_name()} =" in receipt
assert f"= {str(ing2.get_type()).lower()} {ing2.get_name()} =" in receipt
assert f"(==== {bun.get_name()} ====)" in receipt
Copy link

Choose a reason for hiding this comment

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

Нужно исправить: тест неатомарный. после ассерта уже не должно быть шагов, а каждый тест должен проверять какое то одно поведение приложения

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