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
12a61931
Commit
12a61931
authored
Jul 28, 2016
by
Shauna Gordon-McKeon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch relative to absolute urls in imports (tests/lms part 2)
parent
89ed6f1c
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
80 additions
and
80 deletions
+80
-80
common/test/acceptance/tests/lms/test_lms_dashboard.py
+4
-4
common/test/acceptance/tests/lms/test_lms_dashboard_search.py
+9
-9
common/test/acceptance/tests/lms/test_lms_edxnotes.py
+7
-7
common/test/acceptance/tests/lms/test_lms_entrance_exams.py
+5
-5
common/test/acceptance/tests/lms/test_lms_gating.py
+8
-8
common/test/acceptance/tests/lms/test_lms_index.py
+1
-1
common/test/acceptance/tests/lms/test_lms_instructor_dashboard.py
+14
-14
common/test/acceptance/tests/lms/test_lms_matlab_problem.py
+4
-4
common/test/acceptance/tests/lms/test_lms_problems.py
+7
-7
common/test/acceptance/tests/lms/test_lms_split_test_courseware_search.py
+9
-9
common/test/acceptance/tests/lms/test_lms_user_preview.py
+6
-6
common/test/acceptance/tests/lms/test_programs.py
+6
-6
No files found.
common/test/acceptance/tests/lms/test_lms_dashboard.py
View file @
12a61931
...
...
@@ -5,10 +5,10 @@ End-to-end tests for the main LMS Dashboard (aka, Student Dashboard).
import
datetime
from
nose.plugins.attrib
import
attr
from
.
.helpers
import
UniqueCourseTest
,
generate_course_key
from
..
.fixtures.course
import
CourseFixture
from
..
.pages.lms.auto_auth
import
AutoAuthPage
from
..
.pages.lms.dashboard
import
DashboardPage
from
common.test.acceptance.tests
.helpers
import
UniqueCourseTest
,
generate_course_key
from
common.test.acceptance
.fixtures.course
import
CourseFixture
from
common.test.acceptance
.pages.lms.auto_auth
import
AutoAuthPage
from
common.test.acceptance
.pages.lms.dashboard
import
DashboardPage
DEFAULT_SHORT_DATE_FORMAT
=
"
%
b
%
d,
%
Y"
DEFAULT_DAY_AND_TIME_FORMAT
=
"
%
A at
%-
I
%
P"
...
...
common/test/acceptance/tests/lms/test_lms_dashboard_search.py
View file @
12a61931
...
...
@@ -5,15 +5,15 @@ import os
import
json
from
bok_choy.web_app_test
import
WebAppTest
from
.
.helpers
import
generate_course_key
from
..
.pages.common.logout
import
LogoutPage
from
..
.pages.common.utils
import
click_css
from
..
.pages.studio.utils
import
add_html_component
,
type_in_codemirror
from
..
.pages.studio.auto_auth
import
AutoAuthPage
from
..
.pages.studio.overview
import
CourseOutlinePage
from
..
.pages.studio.container
import
ContainerPage
from
..
.pages.lms.dashboard_search
import
DashboardSearchPage
from
..
.fixtures.course
import
CourseFixture
,
XBlockFixtureDesc
from
common.test.acceptance.tests
.helpers
import
generate_course_key
from
common.test.acceptance
.pages.common.logout
import
LogoutPage
from
common.test.acceptance
.pages.common.utils
import
click_css
from
common.test.acceptance
.pages.studio.utils
import
add_html_component
,
type_in_codemirror
from
common.test.acceptance
.pages.studio.auto_auth
import
AutoAuthPage
from
common.test.acceptance
.pages.studio.overview
import
CourseOutlinePage
from
common.test.acceptance
.pages.studio.container
import
ContainerPage
from
common.test.acceptance
.pages.lms.dashboard_search
import
DashboardSearchPage
from
common.test.acceptance
.fixtures.course
import
CourseFixture
,
XBlockFixtureDesc
class
DashboardSearchTest
(
WebAppTest
):
...
...
common/test/acceptance/tests/lms/test_lms_edxnotes.py
View file @
12a61931
...
...
@@ -6,13 +6,13 @@ import random
from
uuid
import
uuid4
from
datetime
import
datetime
from
nose.plugins.attrib
import
attr
from
.
.helpers
import
UniqueCourseTest
,
EventsTestMixin
from
..
.fixtures.course
import
CourseFixture
,
XBlockFixtureDesc
from
..
.pages.lms.auto_auth
import
AutoAuthPage
from
..
.pages.lms.course_nav
import
CourseNavPage
from
..
.pages.lms.courseware
import
CoursewarePage
from
..
.pages.lms.edxnotes
import
EdxNotesUnitPage
,
EdxNotesPage
,
EdxNotesPageNoContent
from
..
.fixtures.edxnotes
import
EdxNotesFixture
,
Note
,
Range
from
common.test.acceptance.tests
.helpers
import
UniqueCourseTest
,
EventsTestMixin
from
common.test.acceptance
.fixtures.course
import
CourseFixture
,
XBlockFixtureDesc
from
common.test.acceptance
.pages.lms.auto_auth
import
AutoAuthPage
from
common.test.acceptance
.pages.lms.course_nav
import
CourseNavPage
from
common.test.acceptance
.pages.lms.courseware
import
CoursewarePage
from
common.test.acceptance
.pages.lms.edxnotes
import
EdxNotesUnitPage
,
EdxNotesPage
,
EdxNotesPageNoContent
from
common.test.acceptance
.fixtures.edxnotes
import
EdxNotesFixture
,
Note
,
Range
from
flaky
import
flaky
...
...
common/test/acceptance/tests/lms/test_lms_entrance_exams.py
View file @
12a61931
...
...
@@ -4,11 +4,11 @@ Bok choy acceptance tests for Entrance exams in the LMS
"""
from
textwrap
import
dedent
from
.
.helpers
import
UniqueCourseTest
from
..
.pages.studio.auto_auth
import
AutoAuthPage
from
..
.pages.lms.courseware
import
CoursewarePage
from
..
.pages.lms.problem
import
ProblemPage
from
..
.fixtures.course
import
CourseFixture
,
XBlockFixtureDesc
from
common.test.acceptance.tests
.helpers
import
UniqueCourseTest
from
common.test.acceptance
.pages.studio.auto_auth
import
AutoAuthPage
from
common.test.acceptance
.pages.lms.courseware
import
CoursewarePage
from
common.test.acceptance
.pages.lms.problem
import
ProblemPage
from
common.test.acceptance
.fixtures.course
import
CourseFixture
,
XBlockFixtureDesc
class
EntranceExamTest
(
UniqueCourseTest
):
...
...
common/test/acceptance/tests/lms/test_lms_gating.py
View file @
12a61931
...
...
@@ -4,14 +4,14 @@ End-to-end tests for the gating feature.
"""
from
textwrap
import
dedent
from
.
.helpers
import
UniqueCourseTest
from
..
.pages.studio.auto_auth
import
AutoAuthPage
from
..
.pages.studio.overview
import
CourseOutlinePage
from
..
.pages.lms.courseware
import
CoursewarePage
from
..
.pages.lms.problem
import
ProblemPage
from
..
.pages.lms.staff_view
import
StaffPage
from
..
.pages.common.logout
import
LogoutPage
from
..
.fixtures.course
import
CourseFixture
,
XBlockFixtureDesc
from
common.test.acceptance.tests
.helpers
import
UniqueCourseTest
from
common.test.acceptance
.pages.studio.auto_auth
import
AutoAuthPage
from
common.test.acceptance
.pages.studio.overview
import
CourseOutlinePage
from
common.test.acceptance
.pages.lms.courseware
import
CoursewarePage
from
common.test.acceptance
.pages.lms.problem
import
ProblemPage
from
common.test.acceptance
.pages.lms.staff_view
import
StaffPage
from
common.test.acceptance
.pages.common.logout
import
LogoutPage
from
common.test.acceptance
.fixtures.course
import
CourseFixture
,
XBlockFixtureDesc
class
GatingTest
(
UniqueCourseTest
):
...
...
common/test/acceptance/tests/lms/test_lms_index.py
View file @
12a61931
...
...
@@ -6,7 +6,7 @@ what students see @ edx.org because we redirect requests to a separate web appli
import
datetime
from
bok_choy.web_app_test
import
WebAppTest
from
..
.pages.lms.index
import
IndexPage
from
common.test.acceptance
.pages.lms.index
import
IndexPage
class
BaseLmsIndexTest
(
WebAppTest
):
...
...
common/test/acceptance/tests/lms/test_lms_instructor_dashboard.py
View file @
12a61931
...
...
@@ -8,21 +8,21 @@ import ddt
from
nose.plugins.attrib
import
attr
from
bok_choy.promise
import
EmptyPromise
from
.
.helpers
import
UniqueCourseTest
,
get_modal_alert
,
EventsTestMixin
from
..
.pages.common.logout
import
LogoutPage
from
..
.pages.lms.auto_auth
import
AutoAuthPage
from
..
.pages.studio.overview
import
CourseOutlinePage
from
..
.pages.lms.create_mode
import
ModeCreationPage
from
..
.pages.lms.courseware
import
CoursewarePage
from
..
.pages.lms.instructor_dashboard
import
InstructorDashboardPage
from
..
.fixtures.course
import
CourseFixture
,
XBlockFixtureDesc
from
..
.pages.lms.dashboard
import
DashboardPage
from
..
.pages.lms.problem
import
ProblemPage
from
..
.pages.lms.track_selection
import
TrackSelectionPage
from
..
.pages.lms.pay_and_verify
import
PaymentAndVerificationFlow
,
FakePaymentPage
from
..
.pages.lms.login_and_register
import
CombinedLoginAndRegisterPage
from
common.test.acceptance.tests
.helpers
import
UniqueCourseTest
,
get_modal_alert
,
EventsTestMixin
from
common.test.acceptance
.pages.common.logout
import
LogoutPage
from
common.test.acceptance
.pages.lms.auto_auth
import
AutoAuthPage
from
common.test.acceptance
.pages.studio.overview
import
CourseOutlinePage
from
common.test.acceptance
.pages.lms.create_mode
import
ModeCreationPage
from
common.test.acceptance
.pages.lms.courseware
import
CoursewarePage
from
common.test.acceptance
.pages.lms.instructor_dashboard
import
InstructorDashboardPage
from
common.test.acceptance
.fixtures.course
import
CourseFixture
,
XBlockFixtureDesc
from
common.test.acceptance
.pages.lms.dashboard
import
DashboardPage
from
common.test.acceptance
.pages.lms.problem
import
ProblemPage
from
common.test.acceptance
.pages.lms.track_selection
import
TrackSelectionPage
from
common.test.acceptance
.pages.lms.pay_and_verify
import
PaymentAndVerificationFlow
,
FakePaymentPage
from
common.test.acceptance
.pages.lms.login_and_register
import
CombinedLoginAndRegisterPage
from
common.test.acceptance.tests.helpers
import
disable_animations
from
..
.fixtures.certificates
import
CertificateConfigFixture
from
common.test.acceptance
.fixtures.certificates
import
CertificateConfigFixture
class
BaseInstructorDashboardTest
(
EventsTestMixin
,
UniqueCourseTest
):
...
...
common/test/acceptance/tests/lms/test_lms_matlab_problem.py
View file @
12a61931
...
...
@@ -4,10 +4,10 @@ Test for matlab problems
"""
import
time
from
..
.pages.lms.matlab_problem
import
MatlabProblemPage
from
..
.fixtures.course
import
XBlockFixtureDesc
from
..
.fixtures.xqueue
import
XQueueResponseFixture
from
.test_lms_problems
import
ProblemsTest
from
common.test.acceptance
.pages.lms.matlab_problem
import
MatlabProblemPage
from
common.test.acceptance
.fixtures.course
import
XBlockFixtureDesc
from
common.test.acceptance
.fixtures.xqueue
import
XQueueResponseFixture
from
common.test.acceptance.tests.lms
.test_lms_problems
import
ProblemsTest
from
textwrap
import
dedent
...
...
common/test/acceptance/tests/lms/test_lms_problems.py
View file @
12a61931
...
...
@@ -6,13 +6,13 @@ See also old lettuce tests in lms/djangoapps/courseware/features/problems.featur
"""
from
textwrap
import
dedent
from
.
.helpers
import
UniqueCourseTest
from
..
.pages.studio.auto_auth
import
AutoAuthPage
from
..
.pages.lms.courseware
import
CoursewarePage
from
..
.pages.lms.problem
import
ProblemPage
from
..
.pages.lms.login_and_register
import
CombinedLoginAndRegisterPage
from
..
.fixtures.course
import
CourseFixture
,
XBlockFixtureDesc
from
.
.helpers
import
EventsTestMixin
from
common.test.acceptance.tests
.helpers
import
UniqueCourseTest
from
common.test.acceptance
.pages.studio.auto_auth
import
AutoAuthPage
from
common.test.acceptance
.pages.lms.courseware
import
CoursewarePage
from
common.test.acceptance
.pages.lms.problem
import
ProblemPage
from
common.test.acceptance
.pages.lms.login_and_register
import
CombinedLoginAndRegisterPage
from
common.test.acceptance
.fixtures.course
import
CourseFixture
,
XBlockFixtureDesc
from
common.test.acceptance.tests
.helpers
import
EventsTestMixin
class
ProblemsTest
(
UniqueCourseTest
):
...
...
common/test/acceptance/tests/lms/test_lms_split_test_courseware_search.py
View file @
12a61931
...
...
@@ -4,21 +4,21 @@ Test courseware search
import
json
from
.
.helpers
import
remove_file
from
..
.pages.common.logout
import
LogoutPage
from
..
.pages.studio.overview
import
CourseOutlinePage
from
..
.pages.lms.courseware_search
import
CoursewareSearchPage
from
..
.pages.lms.course_nav
import
CourseNavPage
from
..
.fixtures.course
import
XBlockFixtureDesc
from
.
.helpers
import
create_user_partition_json
from
common.test.acceptance.tests
.helpers
import
remove_file
from
common.test.acceptance
.pages.common.logout
import
LogoutPage
from
common.test.acceptance
.pages.studio.overview
import
CourseOutlinePage
from
common.test.acceptance
.pages.lms.courseware_search
import
CoursewareSearchPage
from
common.test.acceptance
.pages.lms.course_nav
import
CourseNavPage
from
common.test.acceptance
.fixtures.course
import
XBlockFixtureDesc
from
common.test.acceptance.tests
.helpers
import
create_user_partition_json
from
xmodule.partitions.partitions
import
Group
from
nose.plugins.attrib
import
attr
from
.
.studio.base_studio_test
import
ContainerBase
from
common.test.acceptance.tests
.studio.base_studio_test
import
ContainerBase
from
..
.pages.studio.auto_auth
import
AutoAuthPage
as
StudioAutoAuthPage
from
common.test.acceptance
.pages.studio.auto_auth
import
AutoAuthPage
as
StudioAutoAuthPage
@attr
(
'shard_1'
)
...
...
common/test/acceptance/tests/lms/test_lms_user_preview.py
View file @
12a61931
...
...
@@ -6,12 +6,12 @@ Tests the "preview" selector in the LMS that allows changing between Staff, Stud
from
nose.plugins.attrib
import
attr
from
.
.helpers
import
UniqueCourseTest
,
create_user_partition_json
from
..
.pages.studio.auto_auth
import
AutoAuthPage
from
..
.pages.lms.courseware
import
CoursewarePage
from
..
.pages.lms.instructor_dashboard
import
InstructorDashboardPage
from
..
.pages.lms.staff_view
import
StaffPage
from
..
.fixtures.course
import
CourseFixture
,
XBlockFixtureDesc
from
common.test.acceptance.tests
.helpers
import
UniqueCourseTest
,
create_user_partition_json
from
common.test.acceptance
.pages.studio.auto_auth
import
AutoAuthPage
from
common.test.acceptance
.pages.lms.courseware
import
CoursewarePage
from
common.test.acceptance
.pages.lms.instructor_dashboard
import
InstructorDashboardPage
from
common.test.acceptance
.pages.lms.staff_view
import
StaffPage
from
common.test.acceptance
.fixtures.course
import
CourseFixture
,
XBlockFixtureDesc
from
bok_choy.promise
import
EmptyPromise
from
xmodule.partitions.partitions
import
Group
from
textwrap
import
dedent
...
...
common/test/acceptance/tests/lms/test_programs.py
View file @
12a61931
"""Acceptance tests for LMS-hosted Programs pages"""
from
nose.plugins.attrib
import
attr
from
..
.fixtures.catalog
import
CatalogFixture
,
CatalogConfigMixin
from
..
.fixtures.programs
import
ProgramsFixture
,
ProgramsConfigMixin
from
..
.fixtures.course
import
CourseFixture
from
.
.helpers
import
UniqueCourseTest
from
..
.pages.lms.auto_auth
import
AutoAuthPage
from
..
.pages.lms.programs
import
ProgramListingPage
,
ProgramDetailsPage
from
common.test.acceptance
.fixtures.catalog
import
CatalogFixture
,
CatalogConfigMixin
from
common.test.acceptance
.fixtures.programs
import
ProgramsFixture
,
ProgramsConfigMixin
from
common.test.acceptance
.fixtures.course
import
CourseFixture
from
common.test.acceptance.tests
.helpers
import
UniqueCourseTest
from
common.test.acceptance
.pages.lms.auto_auth
import
AutoAuthPage
from
common.test.acceptance
.pages.lms.programs
import
ProgramListingPage
,
ProgramDetailsPage
from
openedx.core.djangoapps.catalog.tests
import
factories
as
catalog_factories
from
openedx.core.djangoapps.programs.tests
import
factories
as
program_factories
...
...
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