Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-proctoring
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
edx-proctoring
Commits
1bcc2308
Commit
1bcc2308
authored
Nov 06, 2015
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make sure the unicode method actually supports unicode characters
parent
f86653e5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
edx_proctoring/models.py
+1
-1
edx_proctoring/tests/test_models.py
+16
-1
setup.py
+1
-1
No files found.
edx_proctoring/models.py
View file @
1bcc2308
...
@@ -58,7 +58,7 @@ class ProctoredExam(TimeStampedModel):
...
@@ -58,7 +58,7 @@ class ProctoredExam(TimeStampedModel):
How to serialize myself as a string
How to serialize myself as a string
"""
"""
return
"{course_id}: {exam_name} ({active})"
.
format
(
return
u
"{course_id}: {exam_name} ({active})"
.
format
(
course_id
=
self
.
course_id
,
course_id
=
self
.
course_id
,
exam_name
=
self
.
exam_name
,
exam_name
=
self
.
exam_name
,
active
=
'active'
if
self
.
is_active
else
'inactive'
,
active
=
'active'
if
self
.
is_active
else
'inactive'
,
...
...
edx_proctoring/tests/test_models.py
View file @
1bcc2308
# coding=utf-8
# pylint: disable=invalid-name
"""
"""
All tests for the models.py
All tests for the models.py
"""
"""
# pylint: disable=invalid-name
from
edx_proctoring.models
import
(
from
edx_proctoring.models
import
(
ProctoredExam
,
ProctoredExam
,
ProctoredExamStudentAllowance
,
ProctoredExamStudentAllowance
,
...
@@ -29,6 +30,20 @@ class ProctoredExamModelTests(LoggedInTestCase):
...
@@ -29,6 +30,20 @@ class ProctoredExamModelTests(LoggedInTestCase):
"""
"""
super
(
ProctoredExamModelTests
,
self
)
.
setUp
()
super
(
ProctoredExamModelTests
,
self
)
.
setUp
()
def
test_unicode
(
self
):
"""
Make sure we support Unicode characters
"""
proctored_exam
=
ProctoredExam
.
objects
.
create
(
course_id
=
'test_course'
,
content_id
=
'test_content'
,
exam_name
=
u'अआईउऊऋऌ अआईउऊऋऌ'
,
external_id
=
'123aXqe3'
,
time_limit_mins
=
90
)
output
=
unicode
(
proctored_exam
)
self
.
assertEquals
(
output
,
u"test_course: अआईउऊऋऌ अआईउऊऋऌ (inactive)"
)
def
test_save_proctored_exam_student_allowance_history
(
self
):
# pylint: disable=invalid-name
def
test_save_proctored_exam_student_allowance_history
(
self
):
# pylint: disable=invalid-name
"""
"""
Test to Save and update the proctored Exam Student Allowance object.
Test to Save and update the proctored Exam Student Allowance object.
...
...
setup.py
View file @
1bcc2308
...
@@ -34,7 +34,7 @@ def load_requirements(*requirements_paths):
...
@@ -34,7 +34,7 @@ def load_requirements(*requirements_paths):
setup
(
setup
(
name
=
'edx-proctoring'
,
name
=
'edx-proctoring'
,
version
=
'0.10.1
6
'
,
version
=
'0.10.1
7
'
,
description
=
'Proctoring subsystem for Open edX'
,
description
=
'Proctoring subsystem for Open edX'
,
long_description
=
open
(
'README.md'
)
.
read
(),
long_description
=
open
(
'README.md'
)
.
read
(),
author
=
'edX'
,
author
=
'edX'
,
...
...
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