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

add test for render_start_work_new_applicant method #9594

Merged
merged 2 commits into from
Nov 8, 2021

Conversation

jeremyschuurmans
Copy link
Contributor

Description

Adds unit testing to ensure that the reject_worker_url is present in render_start_work_new_applicant

This is related to this issue on Jira: https://gitcoin.atlassian.net/jira/software/c/projects/GITC/boards/2?modal=detail&selectedIssue=GITC-379

The fix for that issue has been deployed

Refers/Fixes
Testing


@pytest.mark.django_db
class InterestFactory(factory.django.DjangoModelFactory):
"""Create mock Bounty for testing."""
Copy link
Contributor

Choose a reason for hiding this comment

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

I am guessing this is copy/paste error? Should this be a mock Interest?

Copy link
Contributor

Choose a reason for hiding this comment

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

These are also not mock objects. They are real instances of the Django classes. The Factory makes them easy to create for testing purposes.

Copy link
Member

@thelostone-mc thelostone-mc left a comment

Choose a reason for hiding this comment

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

lgtm apart from @ksolo comments

@jeremyschuurmans jeremyschuurmans force-pushed the jeremy/add-test-for-render-start-work-new-applicant branch from c2f67cd to 643fe02 Compare October 29, 2021 16:21
@jeremyschuurmans jeremyschuurmans requested review from ksolo and removed request for zlsgh October 29, 2021 22:07
Copy link
Contributor

@chibie chibie left a comment

Choose a reason for hiding this comment

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

lgtm!

@gdixon gdixon merged commit c5c18b1 into master Nov 8, 2021
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.

5 participants