Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
049cdd67
Commit
049cdd67
authored
5 years ago
by
Feanil Patel
Browse files
Options
Downloads
Patches
Plain Diff
Remove the staff debug tests.
Not critical enough to keep as a part of bokchoy.
parent
f1c24bf5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/test/acceptance/tests/lms/test_lms_user_preview.py
+0
-141
0 additions, 141 deletions
common/test/acceptance/tests/lms/test_lms_user_preview.py
with
0 additions
and
141 deletions
common/test/acceptance/tests/lms/test_lms_user_preview.py
+
0
−
141
View file @
049cdd67
...
...
@@ -102,147 +102,6 @@ class StaffViewToggleTest(CourseWithoutContentGroupsTest):
self
.
assertFalse
(
course_page
.
has_tab
(
'
Instructor
'
))
@attr
(
shard
=
20
)
class
StaffDebugTest
(
CourseWithoutContentGroupsTest
):
"""
Tests that verify the staff debug info.
"""
def
test_reset_attempts_empty
(
self
):
"""
Test that we reset even when there is no student state
"""
staff_debug_page
=
self
.
_goto_staff_page
().
open_staff_debug_info
()
staff_debug_page
.
reset_attempts
()
msg
=
staff_debug_page
.
idash_msg
[
0
]
self
.
assertEqual
(
u
'
Successfully reset the attempts for user {}
'
.
format
(
self
.
USERNAME
),
msg
,
)
def
test_delete_state_empty
(
self
):
"""
Test that we delete properly even when there isn
'
t state to delete.
"""
staff_debug_page
=
self
.
_goto_staff_page
().
open_staff_debug_info
()
staff_debug_page
.
delete_state
()
msg
=
staff_debug_page
.
idash_msg
[
0
]
self
.
assertEqual
(
u
'
Successfully deleted student state for user {}
'
.
format
(
self
.
USERNAME
),
msg
,
)
def
test_reset_attempts_state
(
self
):
"""
Successfully reset the student attempts
"""
staff_page
=
self
.
_goto_staff_page
()
staff_page
.
answer_problem
()
staff_debug_page
=
staff_page
.
open_staff_debug_info
()
staff_debug_page
.
reset_attempts
()
msg
=
staff_debug_page
.
idash_msg
[
0
]
self
.
assertEqual
(
u
'
Successfully reset the attempts for user {}
'
.
format
(
self
.
USERNAME
),
msg
,
)
def
test_rescore_problem
(
self
):
"""
Rescore the student
"""
staff_page
=
self
.
_goto_staff_page
()
staff_page
.
answer_problem
()
staff_debug_page
=
staff_page
.
open_staff_debug_info
()
staff_debug_page
.
rescore
()
msg
=
staff_debug_page
.
idash_msg
[
0
]
self
.
assertEqual
(
u
'
Successfully rescored problem for user {}
'
.
format
(
self
.
USERNAME
),
msg
)
def
test_rescore_problem_if_higher
(
self
):
"""
Rescore the student
"""
staff_page
=
self
.
_goto_staff_page
()
staff_page
.
answer_problem
()
staff_debug_page
=
staff_page
.
open_staff_debug_info
()
staff_debug_page
.
rescore_if_higher
()
msg
=
staff_debug_page
.
idash_msg
[
0
]
self
.
assertEqual
(
u
'
Successfully rescored problem to improve score for user {}
'
.
format
(
self
.
USERNAME
),
msg
)
def
test_student_state_delete
(
self
):
"""
Successfully delete the student state with an answer
"""
staff_page
=
self
.
_goto_staff_page
()
staff_page
.
answer_problem
()
staff_debug_page
=
staff_page
.
open_staff_debug_info
()
staff_debug_page
.
delete_state
()
msg
=
staff_debug_page
.
idash_msg
[
0
]
self
.
assertEqual
(
u
'
Successfully deleted student state for user {}
'
.
format
(
self
.
USERNAME
),
msg
)
def
test_student_by_email
(
self
):
"""
Successfully reset the student attempts using their email address
"""
staff_page
=
self
.
_goto_staff_page
()
staff_page
.
answer_problem
()
staff_debug_page
=
staff_page
.
open_staff_debug_info
()
staff_debug_page
.
reset_attempts
(
self
.
EMAIL
)
msg
=
staff_debug_page
.
idash_msg
[
0
]
self
.
assertEqual
(
u
'
Successfully reset the attempts for user {}
'
.
format
(
self
.
EMAIL
),
msg
)
def
test_bad_student
(
self
):
"""
Test negative response with invalid user
"""
staff_page
=
self
.
_goto_staff_page
()
staff_page
.
answer_problem
()
staff_debug_page
=
staff_page
.
open_staff_debug_info
()
staff_debug_page
.
delete_state
(
'
INVALIDUSER
'
)
msg
=
staff_debug_page
.
idash_msg
[
0
]
self
.
assertEqual
(
u
'
Failed to delete student state for user. User does not exist.
'
,
msg
)
def
test_reset_attempts_for_problem_loaded_via_ajax
(
self
):
"""
Successfully reset the student attempts for problem loaded via ajax.
"""
staff_page
=
self
.
_goto_staff_page
()
staff_page
.
load_problem_via_ajax
()
staff_page
.
answer_problem
()
staff_debug_page
=
staff_page
.
open_staff_debug_info
()
staff_debug_page
.
reset_attempts
()
msg
=
staff_debug_page
.
idash_msg
[
0
]
self
.
assertEqual
(
u
'
Successfully reset the attempts for user {}
'
.
format
(
self
.
USERNAME
),
msg
)
def
test_rescore_state_for_problem_loaded_via_ajax
(
self
):
"""
Rescore the student for problem loaded via ajax.
"""
staff_page
=
self
.
_goto_staff_page
()
staff_page
.
load_problem_via_ajax
()
staff_page
.
answer_problem
()
staff_debug_page
=
staff_page
.
open_staff_debug_info
()
staff_debug_page
.
rescore
()
msg
=
staff_debug_page
.
idash_msg
[
0
]
self
.
assertEqual
(
u
'
Successfully rescored problem for user {}
'
.
format
(
self
.
USERNAME
),
msg
)
def
test_student_state_delete_for_problem_loaded_via_ajax
(
self
):
"""
Successfully delete the student state for problem loaded via ajax.
"""
staff_page
=
self
.
_goto_staff_page
()
staff_page
.
load_problem_via_ajax
()
staff_page
.
answer_problem
()
staff_debug_page
=
staff_page
.
open_staff_debug_info
()
staff_debug_page
.
delete_state
()
msg
=
staff_debug_page
.
idash_msg
[
0
]
self
.
assertEqual
(
u
'
Successfully deleted student state for user {}
'
.
format
(
self
.
USERNAME
),
msg
)
class
CourseWithContentGroupsTest
(
StaffViewTest
):
"""
Verifies that changing the
"
View this course as
"
selector works properly for content groups.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment