Commit 00da52cc by Eric Fischer Committed by Andy Armstrong

Small fixes to rebase to edx-platform

parent 4900e83d
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
"unused" : true, // Warns when you define and never use your variables. "unused" : true, // Warns when you define and never use your variables.
"strict" : false, // Requires all functions to run in ECMAScript 5's strict mode. "strict" : false, // Requires all functions to run in ECMAScript 5's strict mode.
"trailing" : true, // Makes it an error to leave a trailing whitespace in your code. "trailing" : true, // Makes it an error to leave a trailing whitespace in your code.
"maxlen" : 120, // Lets you set the maximum length of a line. // "maxlen" : 120, // Lets you set the maximum length of a line.
//"maxparams" : 4, // Lets you set the max number of formal parameters allowed per function. //"maxparams" : 4, // Lets you set the max number of formal parameters allowed per function.
//"maxdepth" : 4, // Lets you control how nested do you want your blocks to be. //"maxdepth" : 4, // Lets you control how nested do you want your blocks to be.
//"maxstatements" : 4, // Lets you set the max number of statements allowed per function. //"maxstatements" : 4, // Lets you set the max number of statements allowed per function.
......
...@@ -21,7 +21,6 @@ install-python: ...@@ -21,7 +21,6 @@ install-python:
./scripts/install-python.sh ./scripts/install-python.sh
install-js: install-js:
npm config set loglevel warn
npm install npm install
install-nltk-data: install-nltk-data:
...@@ -43,6 +42,7 @@ install-test: ...@@ -43,6 +42,7 @@ install-test:
pip install -q -r requirements/test.txt pip install -q -r requirements/test.txt
install-sys-requirements: install-system install-node install-sys-requirements: install-system install-node
npm config set loglevel warn
install-dev: install-dev:
gem install sass gem install sass
......
...@@ -16,6 +16,7 @@ if __name__ == "__main__": ...@@ -16,6 +16,7 @@ if __name__ == "__main__":
import logging import logging
logging.captureWarnings(True) logging.captureWarnings(True)
sys.argv.append('--noinput') sys.argv.append('--noinput')
sys.argv.append('--logging-clear-handlers')
from django.core.management import execute_from_command_line from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv) execute_from_command_line(sys.argv)
...@@ -242,7 +242,7 @@ def create_assessment( ...@@ -242,7 +242,7 @@ def create_assessment(
raise StaffAssessmentInternalError(error_message) raise StaffAssessmentInternalError(error_message)
@transaction.commit_on_success @transaction.atomic
def _complete_assessment( def _complete_assessment(
submission_uuid, submission_uuid,
scorer_id, scorer_id,
......
...@@ -110,10 +110,6 @@ class AssessmentWorkflow(TimeStampedModel, StatusModel): ...@@ -110,10 +110,6 @@ class AssessmentWorkflow(TimeStampedModel, StatusModel):
new_list.extend(AssessmentWorkflow.ASSESSMENT_SCORE_PRIORITY) new_list.extend(AssessmentWorkflow.ASSESSMENT_SCORE_PRIORITY)
AssessmentWorkflow.ASSESSMENT_SCORE_PRIORITY = new_list AssessmentWorkflow.ASSESSMENT_SCORE_PRIORITY = new_list
@classmethod
@transaction.atomic
def include_staff_in_class(cls):
if 'staff' not in cls.STEPS:
def start_workflow(cls, submission_uuid, step_names, on_init_params): def start_workflow(cls, submission_uuid, step_names, on_init_params):
""" """
Start a new workflow. Start a new workflow.
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
git+https://github.com/edx/XBlock.git@xblock-0.4.1#egg=XBlock==0.4.1 git+https://github.com/edx/XBlock.git@xblock-0.4.1#egg=XBlock==0.4.1
# edx-submissions # edx-submissions
git+https://github.com/edx/edx-submissions.git@0.1.2#egg=edx-submissions==0.1.2 git+https://github.com/edx/edx-submissions.git@0.1.2#egg=edx-submissions==0.1.3
# Third Party Requirements # Third Party Requirements
boto>=2.32.1,<3.0.0 boto>=2.32.1,<3.0.0
......
bok-choy==0.4.7 bok-choy==0.4.7
ddt==0.8.0 ddt==1.0.0
nose==1.3.3 nose==1.3.3
-r base.txt -r base.txt
-r test-acceptance.txt -r test-acceptance.txt
coverage==3.7.1 coverage==4.0.2
django-nose==1.4.1 django-nose==1.4.1
mock==1.0.1 mock==1.0.1
moto==0.2.22 moto==0.3.1
pep8==1.5.7 pep8==1.6.2
pylint<1.0 pylint<1.0
git+https://github.com/edx/django-pyfs.git@1.0.3#egg=django-pyfs==1.0.3 git+https://github.com/edx/django-pyfs.git@1.0.3#egg=django-pyfs==1.0.3
......
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
cd `dirname $BASH_SOURCE` && cd .. cd `dirname $BASH_SOURCE` && cd ..
echo "Generating HTML fixtures for JavaScript tests..." echo "Generating HTML fixtures for JavaScript tests..."
export DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE:-"settings.test"} export DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE:-"settings.test_with_coverage"}
./scripts/render_templates.py openassessment/xblock/static/js/fixtures/templates.json ./scripts/render_templates.py openassessment/xblock/static/js/fixtures/templates.json
...@@ -30,8 +30,8 @@ import dateutil.parser ...@@ -30,8 +30,8 @@ import dateutil.parser
import pytz import pytz
# This is a bit of a hack to ensure that the root repo directory # This is a bit of a hack to ensure that the root repo directory
# is in the Python path, so Django can find the settings module. # is in the front of the Python path, so Django can find the settings module.
sys.path.append(os.path.dirname(os.path.dirname(__file__))) sys.path.insert(1,os.path.dirname(os.path.dirname(__file__)))
import django import django
from django.template.context import Context from django.template.context import Context
from django.template.loader import get_template from django.template.loader import get_template
......
...@@ -6,5 +6,5 @@ cd `dirname $BASH_SOURCE` && cd .. ...@@ -6,5 +6,5 @@ cd `dirname $BASH_SOURCE` && cd ..
git clean -xfd "./storage/test/" git clean -xfd "./storage/test/"
echo "Running Python tests..." echo "Running Python tests..."
export DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE:-"settings.test"} export DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE:-"settings.test_with_coverage"}
python manage.py test $1 python manage.py test $1
...@@ -42,7 +42,7 @@ def load_requirements(*requirements_paths): ...@@ -42,7 +42,7 @@ def load_requirements(*requirements_paths):
setup( setup(
name='ora2', name='ora2',
version='0.2.2', version='0.2.3',
author='edX', author='edX',
url='http://github.com/edx/edx-ora2', url='http://github.com/edx/edx-ora2',
description='edx-ora2', description='edx-ora2',
......
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