-
Notifications
You must be signed in to change notification settings - Fork 0
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
Added new tests vacancy #219
base: dev
Are you sure you want to change the base?
Conversation
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.
переименуй функции и вынеси в test_utils, много копипаста, объясни зачем ты разделил все на несколько тесткейсов
vacancy/tests.py
Outdated
user.save() | ||
return user | ||
|
||
def second_user_create(self): |
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.
можешь в user_create добавить аргументом user_create_data и удалить вторую функцию
меньше копипаста
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.
переименовать бы в create_user
хз почему у нас такое название завелось но это неправильно)
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.
поправил названия функций + вынес в TestUtils.
vacancy/tests.py
Outdated
user.save() | ||
return user | ||
|
||
def project_create(self, user): |
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.
лучше переименовать в create_project
во вторых эти utils функции нужно куда то вынести из тест кейса, по хорошему user_create тоже вынести
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.
поправил + вынес
vacancy/tests.py
Outdated
) | ||
return project | ||
|
||
def vacancy_create(self, project): |
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.
аналогично переименуй
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.
поправил
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.
зачем удалил .env.example?)
Краткое название
new tests for vacancy
Описание изменений
Добавил тесты на отклик на вакансию/ принятие отклика/ отклонение отклика/ удаление вакансии от владельца проекта/ пользователя/неавторизованного пользователя