Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypha
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ots
hypha
Commits
a4646873
Commit
a4646873
authored
6 years ago
by
Erin Mullaney
Browse files
Options
Downloads
Patches
Plain Diff
#957 test change
parent
552296b6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
opentech/apply/funds/tests/test_views.py
+5
-2
5 additions, 2 deletions
opentech/apply/funds/tests/test_views.py
with
5 additions
and
2 deletions
opentech/apply/funds/tests/test_views.py
+
5
−
2
View file @
a4646873
...
@@ -7,6 +7,7 @@ from opentech.apply.funds.tests.factories import (
...
@@ -7,6 +7,7 @@ from opentech.apply.funds.tests.factories import (
ApplicationSubmissionFactory
,
ApplicationSubmissionFactory
,
ApplicationRevisionFactory
,
ApplicationRevisionFactory
,
AssignedWithRoleReviewersFactory
,
AssignedWithRoleReviewersFactory
,
AssignedReviewersFactory
,
InvitedToProposalFactory
,
InvitedToProposalFactory
,
LabSubmissionFactory
,
LabSubmissionFactory
,
ReviewerRoleFactory
,
ReviewerRoleFactory
,
...
@@ -296,8 +297,10 @@ class TestReviewersUpdateView(BaseSubmissionViewTestCase):
...
@@ -296,8 +297,10 @@ class TestReviewersUpdateView(BaseSubmissionViewTestCase):
def
test_lead_adds_two_roles_one_reviewer_and_a_new_review_comes_in
(
self
):
def
test_lead_adds_two_roles_one_reviewer_and_a_new_review_comes_in
(
self
):
submission
=
ApplicationSubmissionFactory
(
lead
=
self
.
user
,
status
=
'
external_review
'
,
workflow_stages
=
2
)
submission
=
ApplicationSubmissionFactory
(
lead
=
self
.
user
,
status
=
'
external_review
'
,
workflow_stages
=
2
)
AssignedWithRoleReviewersFactory
(
role
=
self
.
roles
[
0
],
submission
=
submission
,
reviewer
=
self
.
staff
[
0
])
self
.
post_form
(
submission
,
reviewer_roles
=
[
self
.
staff
[
0
],
self
.
staff
[
1
]],
reviewers
=
[
self
.
reviewers
[
0
]])
AssignedWithRoleReviewersFactory
(
role
=
self
.
roles
[
1
],
submission
=
submission
,
reviewer
=
self
.
staff
[
1
])
AssignedReviewersFactory
(
submission
=
submission
,
reviewer
=
self
.
reviewers
[
0
])
# Now, let's check that we have 3 reviewers to begin with
self
.
assertEqual
(
submission
.
reviewers
.
all
().
count
(),
3
)
self
.
assertEqual
(
submission
.
reviewers
.
all
().
count
(),
3
)
# Add a review from a new reviewer who isn't assigned
# Add a review from a new reviewer who isn't assigned
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment