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

Added new tests vacancy #219

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from
Open

Added new tests vacancy #219

wants to merge 4 commits into from

Conversation

denkoten
Copy link
Collaborator

Краткое название

new tests for vacancy

Описание изменений

Добавил тесты на отклик на вакансию/ принятие отклика/ отклонение отклика/ удаление вакансии от владельца проекта/ пользователя/неавторизованного пользователя

Copy link
Member

@Yakser Yakser left a 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):
Copy link
Member

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 и удалить вторую функцию
меньше копипаста

Copy link
Member

Choose a reason for hiding this comment

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

переименовать бы в create_user
хз почему у нас такое название завелось но это неправильно)

Copy link
Collaborator Author

@denkoten denkoten Nov 16, 2023

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):
Copy link
Member

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 тоже вынести

Copy link
Collaborator Author

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):
Copy link
Member

Choose a reason for hiding this comment

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

аналогично переименуй

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

поправил

@denkoten denkoten changed the title Adding new tests vacancy Added new tests vacancy Nov 16, 2023
Copy link
Member

@Yakser Yakser left a comment

Choose a reason for hiding this comment

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

зачем удалил .env.example?)

@Yakser Yakser self-requested a review December 12, 2023 07:15
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