Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
django-cas-server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Samir
django-cas-server
Commits
ff956628
Commit
ff956628
authored
Jul 23, 2016
by
Valentin Samir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing docstrings
parent
d6b91033
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
cas_server/models.py
cas_server/models.py
+1
-0
cas_server/tests/test_view.py
cas_server/tests/test_view.py
+1
-0
No files found.
cas_server/models.py
View file @
ff956628
...
...
@@ -737,6 +737,7 @@ class Ticket(models.Model):
TIMEOUT
=
settings
.
CAS_TICKET_TIMEOUT
class
DoesNotExist
(
Exception
):
"""raised in :meth:`Ticket.get` then ticket prefix and ticket classes mismatch"""
pass
def
__str__
(
self
):
...
...
cas_server/tests/test_view.py
View file @
ff956628
...
...
@@ -1193,6 +1193,7 @@ class ValidateServiceTestCase(TestCase, XmlContent):
self
.
assert_success
(
response
,
settings
.
CAS_TEST_USER
,
settings
.
CAS_TEST_ATTRIBUTES
)
def
test_validate_proxy
(
self
):
"""test ProxyTicket validation on /proxyValidate and /serviceValidate"""
ticket
=
get_proxy_ticket
(
self
.
service
)
client
=
Client
()
# requesting validation with a good (ticket, service)
...
...
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