-
-
Notifications
You must be signed in to change notification settings - Fork 775
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
add test for render_start_work_new_applicant method #9594
Conversation
|
||
@pytest.mark.django_db | ||
class InterestFactory(factory.django.DjangoModelFactory): | ||
"""Create mock Bounty for testing.""" |
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.
I am guessing this is copy/paste error? Should this be a mock Interest?
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.
These are also not mock objects. They are real instances of the Django classes. The Factory makes them easy to create for testing purposes.
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.
lgtm apart from @ksolo comments
c2f67cd
to
643fe02
Compare
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.
lgtm!
Description
Adds unit testing to ensure that the
reject_worker_url
is present inrender_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