Show More
@@ -20,7 +20,8 b'' | |||
|
20 | 20 | |
|
21 | 21 | import pytest |
|
22 | 22 | |
|
23 |
from rhodecode.tests import assert_session_flash |
|
|
23 | from rhodecode.tests import assert_session_flash | |
|
24 | from rhodecode.tests.utils import AssertResponse | |
|
24 | 25 | from rhodecode.model.db import Session |
|
25 | 26 | from rhodecode.model.settings import SettingsModel |
|
26 | 27 | |
@@ -150,12 +151,14 b' class TestAuthSettingsController(object)' | |||
|
150 | 151 | 'egg:rhodecode-enterprise-ce#rhodecode,' |
|
151 | 152 | 'egg:rhodecode-enterprise-ce#ldap', |
|
152 | 153 | csrf_token) |
|
154 | invalid_port_value = 'invalid-port-number' | |
|
153 | 155 | response = self._post_ldap_settings(params, override={ |
|
154 |
'port': |
|
|
156 | 'port': invalid_port_value, | |
|
155 | 157 | }) |
|
156 | response.mustcontain( | |
|
157 | '<span class="error-message">"invalid-port-number"' | |
|
158 | ' is not a number</span>') | |
|
158 | assertr = AssertResponse(response) | |
|
159 | assertr.element_contains( | |
|
160 | '.form .field #port ~ .error-message', | |
|
161 | invalid_port_value) | |
|
159 | 162 | |
|
160 | 163 | def test_ldap_error_form(self, csrf_token): |
|
161 | 164 | params = self._enable_plugins( |
General Comments 0
You need to be logged in to leave comments.
Login now