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
859d0d95
Commit
859d0d95
authored
Aug 22, 2012
by
Mark L. Chang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature to toggle the toy courses
parent
5f088ba4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
22 deletions
+11
-22
lms/djangoapps/acceptance_testing/features/courseware.feature
+0
-11
lms/djangoapps/acceptance_testing/features/target_urls.py
+0
-5
lms/envs/acceptance_testing.py
+1
-0
lms/envs/common.py
+2
-0
lms/templates/courses.html
+8
-6
No files found.
lms/djangoapps/acceptance_testing/features/courseware.feature
deleted
100644 → 0
View file @
5f088ba4
Feature
:
I can explore all the courses I am signed up for
In order to learn from the courses I'm signed up for
As a registered user with courses
I want to be able to see all the chapters and all the section in each chapter
for each course
Scenario
:
We can see all the courses
Given I visit "http
:
//localhost
:
8000/dashboard"
I
should see some courses
\ No newline at end of file
lms/djangoapps/acceptance_testing/features/target_urls.py
deleted
100644 → 0
View file @
5f088ba4
from
lettuce
import
*
#before, world
from
selenium
import
*
@step
(
u'I load edx_dev'
)
def
i_load_edx_dev
(
step
):
lms/envs/acceptance_testing.py
View file @
859d0d95
...
...
@@ -20,6 +20,7 @@ TEMPLATE_DEBUG = True
MITX_FEATURES
[
'DISABLE_START_DATES'
]
=
True
MITX_FEATURES
[
'ENABLE_SQL_TRACKING_LOGS'
]
=
True
MITX_FEATURES
[
'DISPLAY_TOY_COURSES'
]
=
True
WIKI_ENABLED
=
True
...
...
lms/envs/common.py
View file @
859d0d95
...
...
@@ -67,6 +67,8 @@ MITX_FEATURES = {
'AUTH_USE_OPENID'
:
False
,
'AUTH_USE_MIT_CERTIFICATES'
:
False
,
# acceptance testing flag that enable/disable toy courses in the views
'DISPLAY_TOY_COURSES'
:
False
,
}
# Used for A/B testing
...
...
lms/templates/courses.html
View file @
859d0d95
...
...
@@ -20,12 +20,14 @@
## I'm removing this for now since we aren't using it for the fall.
##
<
%
include
file=
"course_filter.html"
/>
<section
class=
"courses"
>
## hack to get the edx-labeled test courses in place
<section
class=
'university-column'
>
%for course in universities['edX']:
<
%
include
file=
"course.html"
args=
"course=course"
/>
%endfor
</section>
## toy courses
%if settings.MITX_FEATURES['DISPLAY_TOY_COURSES']:
<section
class=
'university-column'
>
%for course in universities['edX']:
<
%
include
file=
"course.html"
args=
"course=course"
/>
%endfor
</section>
%endif
<section
class=
'university-column'
>
%for course in universities['MITx']:
...
...
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