Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Samir
django-cas-server
Commits
951dc60e
Commit
951dc60e
authored
Mar 29, 2017
by
Jorik Kraaikamp
Browse files
Fixed some major mistyping and added the default setting.
parent
81ebc74e
Changes
2
Hide whitespace changes
Inline
Side-by-side
cas_server/default_settings.py
View file @
951dc60e
...
...
@@ -185,6 +185,8 @@ CAS_NEW_VERSION_EMAIL_WARNING = True
#: You should not change it.
CAS_NEW_VERSION_JSON_URL
=
"https://pypi.python.org/pypi/django-cas-server/json"
#: If the service message should be displayed on the login page
CAS_SHOW_SERVICE_MESSAGES
=
True
#: Messages displayed in a info-box on the html pages of the default templates.
#: ``CAS_INFO_MESSAGES`` is a :class:`dict` mapping message name to a message :class:`dict`.
...
...
cas_server/tests/test_view.py
View file @
951dc60e
...
...
@@ -295,7 +295,7 @@ class LoginTestCase(TestCase, BaseServicePattern, CanLogin):
)
in
response
.
content
)
@
override_settings
(
CAS_SHOW_SERVE
R
_MESSAGES
=
False
)
@
override_settings
(
CAS_SHOW_SERV
IC
E_MESSAGES
=
False
)
def
test_view_login_get_allowed_service_no_message
(
self
):
"""Request a ticket for an allowed service by an unauthenticated client"""
# get a bare new http client
...
...
@@ -324,7 +324,7 @@ class LoginTestCase(TestCase, BaseServicePattern, CanLogin):
# we warn the user that https://www.example.net is not an allowed service url
self
.
assertTrue
(
b
"Service https://www.example.net not allowed"
in
response
.
content
)
@
override_settings
(
CAS_SHOW_SERVE
R
_MESSAGES
=
False
)
@
override_settings
(
CAS_SHOW_SERV
IC
E_MESSAGES
=
False
)
def
test_view_login_get_denied_service_no_message
(
self
):
"""Request a ticket for an denied service by an unauthenticated client"""
# get a bare new http client
...
...
@@ -535,7 +535,7 @@ class LoginTestCase(TestCase, BaseServicePattern, CanLogin):
# renewing authentication is done in the validate and serviceValidate views tests
self
.
assertEqual
(
ticket
.
renew
,
True
)
@
override_settings
(
CAS_SHOW_SERVE
R
_MESSAGES
=
False
)
@
override_settings
(
CAS_SHOW_SERV
IC
E_MESSAGES
=
False
)
def
test_renew_message_disabled
(
self
):
"""test the authentication renewal request from a service"""
# use the default test service
...
...
Write
Preview
Supports
Markdown
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