Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
2059bfa5
Commit
2059bfa5
authored
7 years ago
by
Michael Youngstrom
Browse files
Options
Downloads
Patches
Plain Diff
Remove test_course_updated_with_entrance_exam
parent
67769742
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/studio/test_import_export.py
+0
-42
0 additions, 42 deletions
common/test/acceptance/tests/studio/test_import_export.py
with
0 additions
and
42 deletions
common/test/acceptance/tests/studio/test_import_export.py
+
0
−
42
View file @
2059bfa5
...
...
@@ -273,48 +273,6 @@ class TestEntranceExamCourseImport(ImportTestMixin, StudioCourseTest):
def
page_args
(
self
):
return
[
self
.
browser
,
self
.
course_info
[
'
org
'
],
self
.
course_info
[
'
number
'
],
self
.
course_info
[
'
run
'
]]
def
test_course_updated_with_entrance_exam
(
self
):
"""
Given that I visit an empty course before import
I should not see a section named
'
Section
'
or
'
Entrance Exam
'
When I visit the import page
And I upload a course that has an entrance exam section named
'
Entrance Exam
'
And I visit the course outline page again
The section named
'
Entrance Exam
'
should now be available
When I visit the LMS Course Home page
Then I should see a section named
'
Section
'
or
'
Entrance Exam
'
When I switch the view mode to student view
Then I should only see a section named
'
Entrance Exam
'
When I visit the courseware page
Then a message regarding the
'
Entrance Exam
'
"""
self
.
landing_page
.
visit
()
# Should not exist yet.
self
.
assertRaises
(
IndexError
,
self
.
landing_page
.
section
,
"
Section
"
)
self
.
assertRaises
(
IndexError
,
self
.
landing_page
.
section
,
"
Entrance Exam
"
)
self
.
import_page
.
visit
()
self
.
import_page
.
upload_tarball
(
self
.
tarball_name
)
self
.
import_page
.
wait_for_upload
()
self
.
landing_page
.
visit
()
# There should be two sections. 'Entrance Exam' and 'Section' on the landing page.
self
.
landing_page
.
section
(
"
Entrance Exam
"
)
self
.
landing_page
.
section
(
"
Section
"
)
self
.
landing_page
.
view_live
()
course_home
=
CourseHomePage
(
self
.
browser
,
self
.
course_id
)
course_home
.
visit
()
self
.
assertEqual
(
course_home
.
outline
.
num_sections
,
2
)
course_home
.
preview
.
set_staff_view_mode
(
'
Learner
'
)
self
.
assertEqual
(
course_home
.
outline
.
num_sections
,
1
)
courseware
=
CoursewarePage
(
self
.
browser
,
self
.
course_id
)
courseware
.
visit
()
StaffCoursewarePage
(
self
.
browser
,
self
.
course_id
).
set_staff_view_mode
(
'
Learner
'
)
self
.
assertIn
(
"
To access course materials, you must score
"
,
courseware
.
entrance_exam_message_selector
.
text
[
0
]
)
@attr
(
shard
=
7
)
class
TestCourseImport
(
ImportTestMixin
,
StudioCourseTest
):
...
...
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