Skip to content
Snippets Groups Projects
Commit a6185cff authored by Todd Dembrey's avatar Todd Dembrey Committed by Fredrik Jonsson
Browse files

Add a test for the open RFP

parent b23ce4bd
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,7 @@ __all__ = [
'RequestForPartnersFactory',
'SealedRoundFactory',
'SealedSubmissionFactory',
'TodayRoundFactory',
'workflow_for_stages',
]
......
......@@ -21,6 +21,7 @@ from .factories import (
LabFactory,
RequestForPartnersFactory,
RoundFactory,
TodayRoundFactory,
)
......@@ -474,3 +475,12 @@ class TestRequestForPartners(TestCase):
request = make_request(site=rfp.get_site())
response = rfp.serve(request)
self.assertContains(response, 'not accepting')
self.assertNotContains(response, 'Submit')
def test_form_when_round(self):
rfp = RequestForPartnersFactory()
open_round = TodayRoundFactory(parent=rfp)
request = make_request(site=rfp.get_site())
response = rfp.serve(request)
self.assertNotContains(response, 'not accepting')
self.assertContains(response, 'Submit')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment