Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
96af08af
Commit
96af08af
authored
Jul 20, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cover case of system without any contract.
No Contract field shall be rendered, and no need to confirm.
parent
813bc6ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
product/ERP5/tests/testERP5Credential.py
product/ERP5/tests/testERP5Credential.py
+8
-0
No files found.
product/ERP5/tests/testERP5Credential.py
View file @
96af08af
...
...
@@ -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))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment