Commit f381dd6c by Steven Zheng Committed by Steven Zheng

Add script to generate test courses in Studio

parent fd070b65
......@@ -98,3 +98,6 @@ validate-lms-volume: ## Validate that changes to the local workspace are reflect
mysql-shell: ## Run a shell on the mysql container
docker-compose exec mysql bash
create-test-course-studio: ## Generates a course on studio using settings in test-course-studio.json
./create-test-course-studio.sh
SETTINGS=`tr -d '\n' < "test-course-studio.json"`
docker-compose exec lms bash -c "source /edx/app/edxapp/edxapp_env && python /edx/app/edxapp/edx-platform/manage.py cms --settings=devstack_docker generate_test_course '$SETTINGS'"
{
"store": "split",
"user": "edx@example.com",
"organization": "test-course-generator",
"number": "1",
"run": "1",
"fields": {
"display_name": "test-course"
}
}
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