Commit 96af08af authored by Łukasz Nowak's avatar Łukasz Nowak

Cover case of system without any contract.

No Contract field shall be rendered, and no need to confirm.
parent 813bc6ea
......@@ -1225,6 +1225,14 @@ class TestERP5Credential(ERP5TypeTestCase):
web_site.getRelativeUrl(), self.contract_reference)).getTextContent()
self.assertTrue(self.contract_content in rendered)
def test_ERP5Site_viewCredentialRequestForm_no_contract(self):
"""Check that if no contract is configured none is shown nor it is not
required to accept it"""
self.logout()
result = self.portal.ERP5Site_viewCredentialRequestForm()
self.assertFalse('Contract' in result)
self.assertFalse('your_term_confirmation' in result)
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestERP5Credential))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment