Skip to content

Added new tests vacancy - #219

Open
denkoten wants to merge 4 commits into
devfrom
feature/vacancy-tests
Open

Added new tests vacancy#219
denkoten wants to merge 4 commits into
devfrom
feature/vacancy-tests

Conversation

@denkoten

Copy link
Copy Markdown
Collaborator

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

new tests for vacancy

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

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

@yakseryakser left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

переименуй функции и вынеси в test_utils, много копипаста, объясни зачем ты разделил все на несколько тесткейсов

Comment threadvacancy/tests.py Outdated
user.save()
return user

def second_user_create(self):

Copy link
Copy Markdown
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
Copy Markdown
Member

Choose a reason for hiding this comment

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

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

@denkotendenkotenNov 16, 2023

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

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

поправил названия функций + вынес в TestUtils.

Comment threadvacancy/tests.py Outdated
user.save()
return user

def project_create(self, user):

Copy link
Copy Markdown
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
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

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

поправил + вынес

Comment threadvacancy/tests.py Outdated
)
return project

def vacancy_create(self, project):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

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

поправил

@denkotendenkoten changed the title Adding new tests vacancyAdded new tests vacancyNov 16, 2023

@yakseryakser left a comment

Copy link
Copy Markdown
Member

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 freeto 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

@denkoten@yakser