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
1807948f
Commit
1807948f
authored
Jul 14, 2014
by
clytwynec
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4391 from edx/clytwynec/clean_up_lettuce_output
Clytwynec/clean up lettuce output
parents
61311778
0581d0c5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
92 deletions
+25
-92
cms/envs/acceptance.py
+13
-9
lms/djangoapps/courseware/features/help.feature
+0
-32
lms/djangoapps/courseware/features/help.py
+0
-45
lms/envs/acceptance.py
+12
-6
No files found.
cms/envs/acceptance.py
View file @
1807948f
...
@@ -24,15 +24,19 @@ import os
...
@@ -24,15 +24,19 @@ import os
def
seed
():
def
seed
():
return
os
.
getppid
()
return
os
.
getppid
()
# Suppress error message "Cannot determine primary key of logged in user"
# Silence noisy logs
# from track.middleware that gets triggered when using an auto_auth workflow
LOG_OVERRIDES
=
[
# This is an ERROR level warning so we need to set the threshold at CRITICAL
(
'track.middleware'
,
logging
.
CRITICAL
),
logging
.
getLogger
(
'track.middleware'
)
.
setLevel
(
logging
.
CRITICAL
)
(
'codejail.safe_exec'
,
logging
.
ERROR
),
(
'edx.courseware'
,
logging
.
ERROR
),
# Suppress warning message "Cannot find corresponding link for name: <foo>"
(
'edxmako.shortcuts'
,
logging
.
ERROR
),
# from edxmako.shortcuts. We have no appropriate pages in the platform to
(
'audit'
,
logging
.
ERROR
),
# use, so these are not set up for TOS and PRIVACY
(
'contentstore.views.import_export'
,
logging
.
CRITICAL
),
logging
.
getLogger
(
'edxmako.shortcuts'
)
.
setLevel
(
logging
.
ERROR
)
(
'xmodule.x_module'
,
logging
.
CRITICAL
),
]
for
log_name
,
log_level
in
LOG_OVERRIDES
:
logging
.
getLogger
(
log_name
)
.
setLevel
(
log_level
)
update_module_store_settings
(
update_module_store_settings
(
MODULESTORE
,
MODULESTORE
,
...
...
lms/djangoapps/courseware/features/help.feature
deleted
100644 → 0
View file @
61311778
@shard_2
Feature
:
LMS.The help module should work
In order to get help
As a student
I want to be able to report a problem
Scenario
:
I
can submit a problem when I am not logged in
Given
I visit the homepage
When
I open the help form
And
I report a
"<FeedbackType>"
Then
I should see confirmation that the issue was received
Examples
:
|
FeedbackType
|
|
problem
|
|
suggestion
|
|
question
|
Scenario
:
I
can submit a problem when I am logged in
Given
I am in a course
When
I open the help form
And
I report a
"<FeedbackType>"
without saying who I am
Then
I should see confirmation that the issue was received
Examples
:
|
FeedbackType
|
|
problem
|
|
suggestion
|
|
question
|
lms/djangoapps/courseware/features/help.py
deleted
100644 → 0
View file @
61311778
# pylint: disable=C0111
# pylint: disable=W0621
from
lettuce
import
world
,
step
@step
(
u'I open the help form'
)
def
open_help_modal
(
step
):
help_css
=
'div.help-tab'
world
.
css_click
(
help_css
)
@step
(
u'I report a "([^"]*)"$'
)
def
submit_problem_type
(
step
,
submission_type
):
type_css
=
'#feedback_link_{}'
.
format
(
submission_type
)
world
.
css_click
(
type_css
)
fill_field
(
'name'
,
'Robot'
)
fill_field
(
'email'
,
'robot@edx.org'
)
fill_field
(
'subject'
,
'Test Issue'
)
fill_field
(
'details'
,
'I am having a problem'
)
submit_css
=
'div.submit'
world
.
css_click
(
submit_css
)
@step
(
u'I report a "([^"]*)" without saying who I am$'
)
def
submit_partial_problem_type
(
step
,
submission_type
):
type_css
=
'#feedback_link_{}'
.
format
(
submission_type
)
world
.
css_click
(
type_css
)
fill_field
(
'subject'
,
'Test Issue'
)
fill_field
(
'details'
,
'I am having a problem'
)
submit_css
=
'div.submit'
world
.
css_click
(
submit_css
)
@step
(
u'I should see confirmation that the issue was received'
)
def
see_confirmation
(
step
):
assert
world
.
browser
.
evaluate_script
(
"$('input[value=
\"
Submit
\"
]').attr('disabled')"
)
==
'disabled'
def
fill_field
(
name
,
info
):
def
fill_info
():
form_css
=
'form.feedback_form'
form
=
world
.
css_find
(
form_css
)
form
.
find_by_name
(
name
)
.
fill
(
info
)
world
.
retry_on_exception
(
fill_info
)
lms/envs/acceptance.py
View file @
1807948f
...
@@ -27,10 +27,17 @@ import string
...
@@ -27,10 +27,17 @@ import string
def
seed
():
def
seed
():
return
os
.
getppid
()
return
os
.
getppid
()
# Suppress error message "Cannot determine primary key of logged in user"
# Silence noisy logs
# from track.middleware that gets triggered when using an auto_auth workflow
LOG_OVERRIDES
=
[
# This is an ERROR level warning so we need to set the threshold at CRITICAL
(
'track.middleware'
,
logging
.
CRITICAL
),
logging
.
getLogger
(
'track.middleware'
)
.
setLevel
(
logging
.
CRITICAL
)
(
'codejail.safe_exec'
,
logging
.
ERROR
),
(
'edx.courseware'
,
logging
.
ERROR
),
(
'audit'
,
logging
.
ERROR
),
(
'instructor_task.api_helper'
,
logging
.
ERROR
),
]
for
log_name
,
log_level
in
LOG_OVERRIDES
:
logging
.
getLogger
(
log_name
)
.
setLevel
(
log_level
)
update_module_store_settings
(
update_module_store_settings
(
MODULESTORE
,
MODULESTORE
,
...
@@ -132,8 +139,7 @@ CC_PROCESSOR['CyberSource']['PURCHASE_ENDPOINT'] = "/shoppingcart/payment_fake"
...
@@ -132,8 +139,7 @@ CC_PROCESSOR['CyberSource']['PURCHASE_ENDPOINT'] = "/shoppingcart/payment_fake"
# We do not yet understand why this occurs. Setting this to true is a stopgap measure
# We do not yet understand why this occurs. Setting this to true is a stopgap measure
USE_I18N
=
True
USE_I18N
=
True
FEATURES
[
'ENABLE_FEEDBACK_SUBMISSION'
]
=
True
FEATURES
[
'ENABLE_FEEDBACK_SUBMISSION'
]
=
False
FEEDBACK_SUBMISSION_EMAIL
=
'dummy@example.com'
# Include the lettuce app for acceptance testing, including the 'harvest' django-admin command
# Include the lettuce app for acceptance testing, including the 'harvest' django-admin command
INSTALLED_APPS
+=
(
'lettuce.django'
,)
INSTALLED_APPS
+=
(
'lettuce.django'
,)
...
...
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