Commit 3523e750 by E. Kolpakov

Suppressed logging in tests - selenium driver messages flood the console so it's…

Suppressed logging in tests - selenium driver messages flood the console so it's hard to see which tests have failed and stacktraces
parent e889b9b8
......@@ -403,7 +403,7 @@ class DashboardBlock(StudioEditableXBlockMixin, XBlock):
block['mcqs'].append({
"display_name": mcq_block.display_name_with_default,
"value": value,
"accessible_value": _("Score: {value}").format(value=value) if value else _("No value yet"),
"accessible_value": _("Score: {score}").format(score=value) if value else _("No value yet"),
"color": self.color_for_value(value) if value is not None else None,
})
# If the values are numeric, display an average:
......@@ -415,8 +415,8 @@ class DashboardBlock(StudioEditableXBlockMixin, XBlock):
average_value = sum(numeric_values) / len(numeric_values)
block['average'] = average_value
# average block is shown only if average value exists, so accessible text for no data is not required
block['accessible_average'] = _("Score: {average_value}").format(
average_value=floatformat(average_value)
block['accessible_average'] = _("Score: {score}").format(
score=floatformat(average_value)
)
block['average_label'] = self.average_labels.get(mentoring_block.url_name, _("Average"))
block['has_average'] = True
......
......@@ -132,8 +132,8 @@ class MentoringBlock(XBlock, StepParentMixin, StudioEditableXBlockMixin, StudioC
scope=Scope.settings
)
feedback_label = String(
display_name=_("Feedback Messages Title"),
help=_("Title for feedback messages"),
display_name=_("Feedback Header"),
help=_("Header for feedback messages"),
default=_("Feedback"),
scope=Scope.content
)
......
......@@ -10,6 +10,8 @@ because the workbench SDK's settings file is not inside any python module.
import os
import sys
import logging
if __name__ == "__main__":
# Use the workbench settings file:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "workbench.settings")
......@@ -19,6 +21,8 @@ if __name__ == "__main__":
from django.conf import settings
settings.INSTALLED_APPS += ("problem_builder", )
logging.disable(logging.CRITICAL)
from django.core.management import execute_from_command_line
args = sys.argv[1:]
paths = [arg for arg in args if arg[0] != '-']
......
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