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
9957b1aa
Commit
9957b1aa
authored
Apr 09, 2014
by
Jay Zoldak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable discussion service setting for lettuce tests
parent
15a49f87
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
11 deletions
+15
-11
cms/djangoapps/contentstore/features/pages.py
+4
-4
cms/envs/acceptance.py
+6
-3
lms/envs/acceptance.py
+5
-4
No files found.
cms/djangoapps/contentstore/features/pages.py
View file @
9957b1aa
...
...
@@ -98,25 +98,25 @@ def _verify_page_names(first, second):
@step
(
u'the built-in pages are in the default order$'
)
def
built_in_pages_in_default_order
(
step
):
expected_pages
=
[
'Courseware'
,
'Course Info'
,
'
Discussion'
,
'
Wiki'
,
'Progress'
]
expected_pages
=
[
'Courseware'
,
'Course Info'
,
'Wiki'
,
'Progress'
]
see_pages_in_expected_order
(
expected_pages
)
@step
(
u'the built-in pages are switched$'
)
def
built_in_pages_switched
(
step
):
expected_pages
=
[
'Courseware'
,
'Course Info'
,
'
Wiki'
,
'Progress'
,
'Discussion
'
]
expected_pages
=
[
'Courseware'
,
'Course Info'
,
'
Progress'
,
'Wiki
'
]
see_pages_in_expected_order
(
expected_pages
)
@step
(
u'the pages are in the default order$'
)
def
pages_in_default_order
(
step
):
expected_pages
=
[
'Courseware'
,
'Course Info'
,
'
Discussion'
,
'
Wiki'
,
'Progress'
,
'First'
,
'Empty'
]
expected_pages
=
[
'Courseware'
,
'Course Info'
,
'Wiki'
,
'Progress'
,
'First'
,
'Empty'
]
see_pages_in_expected_order
(
expected_pages
)
@step
(
u'the pages are switched$$'
)
def
pages_are_switched
(
step
):
expected_pages
=
[
'Courseware'
,
'Course Info'
,
'
Wiki'
,
'Progress'
,
'First'
,
'Empty'
,
'Discussion
'
]
expected_pages
=
[
'Courseware'
,
'Course Info'
,
'
Progress'
,
'First'
,
'Empty'
,
'Wiki
'
]
see_pages_in_expected_order
(
expected_pages
)
...
...
cms/envs/acceptance.py
View file @
9957b1aa
...
...
@@ -98,9 +98,12 @@ STATICFILES_FINDERS += ('pipeline.finders.PipelineFinder', )
# Use the auto_auth workflow for creating users and logging them in
FEATURES
[
'AUTOMATIC_AUTH_FOR_TESTING'
]
=
True
# For consistency in user-experience, keep the value of this setting in sync with
# the one in lms/envs/acceptance.py
FEATURES
[
'ENABLE_DISCUSSION_SERVICE'
]
=
True
# Forums are disabled in test.py to speed up unit tests, but we do not have
# per-test control for lettuce acceptance tests.
# If you are writing an acceptance test that needs the discussion service enabled,
# do not write it in lettuce, but instead write it using bok-choy.
# DO NOT CHANGE THIS SETTING HERE.
FEATURES
[
'ENABLE_DISCUSSION_SERVICE'
]
=
False
# HACK
# Setting this flag to false causes imports to not load correctly in the lettuce python files
...
...
lms/envs/acceptance.py
View file @
9957b1aa
...
...
@@ -98,10 +98,11 @@ STATICFILES_FINDERS += ('pipeline.finders.PipelineFinder', )
BULK_EMAIL_DEFAULT_FROM_EMAIL
=
"test@test.org"
# Forums are disabled in test.py to speed up unit tests, but we do not have
# per-test control for acceptance tests
# For consistency in user-experience, keep the value of this setting in sync with
# the one in cms/envs/acceptance.py
FEATURES
[
'ENABLE_DISCUSSION_SERVICE'
]
=
True
# per-test control for lettuce acceptance tests.
# If you are writing an acceptance test that needs the discussion service enabled,
# do not write it in lettuce, but instead write it using bok-choy.
# DO NOT CHANGE THIS SETTING HERE.
FEATURES
[
'ENABLE_DISCUSSION_SERVICE'
]
=
False
# Use the auto_auth workflow for creating users and logging them in
FEATURES
[
'AUTOMATIC_AUTH_FOR_TESTING'
]
=
True
...
...
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