Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx
edx-platform
Commits
2fd9ccec
Commit
2fd9ccec
authored
Mar 05, 2013
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed whitespace issues; removed a test that made no assertions
parent
437aadb2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
13 deletions
+1
-13
lms/djangoapps/courseware/tests/test_progress.py
+1
-2
lms/djangoapps/courseware/tests/test_views.py
+0
-11
No files found.
lms/djangoapps/courseware/tests/test_progress.py
View file @
2fd9ccec
...
...
@@ -30,8 +30,6 @@ class ProgessTests(TestCase):
'questions_incorrect'
:
1
,
'questions_total'
:
0
})
self
.
oth
=
dict
({
'duration_total'
:
0
,
'duration_watched'
:
0
,
'done'
:
True
,
...
...
@@ -48,6 +46,7 @@ class ProgessTests(TestCase):
'questions_correct'
:
4
,
'questions_incorrect'
:
0
,
'questions_total'
:
7
}
def
test_getitem
(
self
):
self
.
assertEqual
(
self
.
c
.
__getitem__
(
'duration_watched'
),
0
)
...
...
lms/djangoapps/courseware/tests/test_views.py
View file @
2fd9ccec
...
...
@@ -84,22 +84,12 @@ class ViewsTestCase(TestCase):
chapter
=
'Overview'
self
.
chapter_url
=
'
%
s/
%
s/
%
s'
%
(
'/courses'
,
self
.
course_id
,
chapter
)
def
test_user_groups
(
self
):
# depreciated function
mock_user
=
MagicMock
()
mock_user
.
is_authenticated
.
return_value
=
False
self
.
assertEquals
(
views
.
user_groups
(
mock_user
),[])
@override_settings
(
DEBUG
=
True
)
def
test_user_groups_debug
(
self
):
mock_user
=
MagicMock
()
mock_user
.
is_authenticated
.
return_value
=
True
pass
#views.user_groups(mock_user)
#Keep going later
def
test_get_current_child
(
self
):
self
.
assertIsNone
(
views
.
get_current_child
(
Stub
()))
mock_xmodule
=
MagicMock
()
...
...
@@ -119,7 +109,6 @@ class ViewsTestCase(TestCase):
self
.
assertRaises
(
Http404
,
views
.
redirect_to_course_position
,
mock_module
,
True
)
def
test_registered_for_course
(
self
):
self
.
assertFalse
(
views
.
registered_for_course
(
'Basketweaving'
,
None
))
mock_user
=
MagicMock
()
...
...
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