Commit 859d0d95 by Mark L. Chang

feature to toggle the toy courses

parent 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
from lettuce import * #before, world
from selenium import *
@step(u'I load edx_dev')
def i_load_edx_dev(step):
......@@ -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
......
......@@ -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
......
......@@ -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']:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment