Skip to content

Добавлены тесты - #868

Open
Viktoryia710 wants to merge 1 commit into
Yandex-Practicum:mainfrom
Viktoryia710:develop1
Open

Добавлены тесты#868
Viktoryia710 wants to merge 1 commit into
Yandex-Practicum:mainfrom
Viktoryia710:develop1

Conversation

@Viktoryia710

Copy link
Copy Markdown

No description provided.

@irisqul irisqul left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Сильные стороны:

  • Код запускается без ошибок
  • Обеспечено необходимое тестовое покрытие

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

Comment thread tests/test_bun.py
)
def test_bun_init_and_getters(self, name, price):
bun = Bun(name, price)
assert bun.get_name() == name

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Нужно исправить: здесь и далее: это юнит тесты, на каждый метод должен быть отдельный тест

Comment thread tests/test_ingredient.py
)
def test_ingredient_init_and_getters(self, ingredient_type, name, price):
ingredient = Ingredient(ingredient_type, name, price)
assert ingredient.get_type() == ingredient_type

Copy link
Copy Markdown

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