Skip to content
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

First commit #191

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

First commit #191

wants to merge 2 commits into from

Conversation

Bars0013
Copy link

@Bars0013 Bars0013 commented Sep 4, 2024

No description provided.

conftest.py Outdated
Comment on lines 12 to 19
@pytest.fixture
def mock_bun():
return Mock()


@pytest.fixture
def mock_ingredient():
return Mock()

Choose a reason for hiding this comment

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

Нужно исправить: чем отличаются эти две фикстуры? Либо наполняем тут мок, либо оставляем одну

@pytest.mark.parametrize("ingredient_type", [INGREDIENT_TYPE_SAUCE, INGREDIENT_TYPE_FILLING])
def test_get_type_success(self, ingredient_type):
ingredient = Ingredient(ingredient_type, Data.INGREDIENT_NAME, Data.INGREDIENT_PRICE)
expected_type = 'SAUCE' if ingredient_type == INGREDIENT_TYPE_SAUCE else 'FILLING'

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