-
Notifications
You must be signed in to change notification settings - Fork 55
Fixtures level 1 #18
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
base: main
Are you sure you want to change the base?
Fixtures level 1 #18
Conversation
Homework 1 try 4
Removing unnecessary parametrize
| card=bank_card_1234, | ||
| spent_in=spent_in, | ||
| spent_at=datetime.strptime("12.04.23 16:00", "%d.%m.%y %H:%M"), | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Отступ лишний
| @pytest.fixture | ||
| def expense(): | ||
| return Expense( | ||
| amount=expense_amount, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тут ты используешь другие фикстуры, но не инджектишь их в фикстуре expense. Так работать не будет.
А это значит, что ты не запускал тесты перед тем как их сдавать. Не советую так делать.
Сделал пока 1й уровень. Не уверен, но мне показалось, что только к 4й задаче нужны фикстуры.