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
5878b1fc
Commit
5878b1fc
authored
Aug 11, 2014
by
Matt Drayer
Committed by
Jonathan Piacenti
Aug 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mattdrayer/api-project-script-fix: Addressed import issue
parent
2f5f7e33
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
lms/djangoapps/projects/management/__init__.py
+0
-0
lms/djangoapps/projects/management/commands/__init__.py
+0
-0
lms/djangoapps/projects/management/commands/migrate_project_courseids.py
+1
-1
lms/djangoapps/projects/management/commands/tests/test_migrate_project_courseids.py
+3
-3
No files found.
lms/djangoapps/projects/management/__init__.py
0 → 100644
View file @
5878b1fc
lms/djangoapps/projects/management/commands/__init__.py
0 → 100644
View file @
5878b1fc
lms/djangoapps/projects/management/commands/migrate_courseids.py
→
lms/djangoapps/projects/management/commands/migrate_
project_
courseids.py
View file @
5878b1fc
...
@@ -9,7 +9,7 @@ from django.test import RequestFactory
...
@@ -9,7 +9,7 @@ from django.test import RequestFactory
from
api_manager.courseware_access
import
get_course
,
get_course_child
from
api_manager.courseware_access
import
get_course
,
get_course_child
from
opaque_keys
import
InvalidKeyError
from
opaque_keys
import
InvalidKeyError
from
project.models
import
Project
,
WorkgroupReview
,
WorkgroupSubmissionReview
from
project
s
.models
import
Project
,
WorkgroupReview
,
WorkgroupSubmissionReview
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
__name__
)
...
...
lms/djangoapps/projects/management/commands/tests/test_migrate_courseids.py
→
lms/djangoapps/projects/management/commands/tests/test_migrate_
project_
courseids.py
View file @
5878b1fc
...
@@ -9,7 +9,7 @@ from django.contrib.auth.models import Group, User
...
@@ -9,7 +9,7 @@ from django.contrib.auth.models import Group, User
from
django.test
import
TestCase
from
django.test
import
TestCase
from
django.test.utils
import
override_settings
from
django.test.utils
import
override_settings
from
api_manager.management.commands
import
migrate
_courseids
from
projects.management.commands
import
migrate_project
_courseids
from
courseware.tests.modulestore_config
import
TEST_DATA_MIXED_MODULESTORE
from
courseware.tests.modulestore_config
import
TEST_DATA_MIXED_MODULESTORE
from
projects.models
import
Project
,
Workgroup
,
WorkgroupReview
,
WorkgroupSubmission
,
WorkgroupSubmissionReview
from
projects.models
import
Project
,
Workgroup
,
WorkgroupReview
,
WorkgroupSubmission
,
WorkgroupSubmissionReview
from
xmodule.modulestore.tests.factories
import
CourseFactory
,
ItemFactory
from
xmodule.modulestore.tests.factories
import
CourseFactory
,
ItemFactory
...
@@ -60,7 +60,7 @@ class MigrateCourseIdsTests(TestCase):
...
@@ -60,7 +60,7 @@ class MigrateCourseIdsTests(TestCase):
self
.
new_style_content_id2
=
unicode
(
self
.
chapter2
.
location
)
self
.
new_style_content_id2
=
unicode
(
self
.
chapter2
.
location
)
def
test_migrate_courseids
(
self
):
def
test_migrate_
project_
courseids
(
self
):
"""
"""
Test the data migration
Test the data migration
"""
"""
...
@@ -81,7 +81,7 @@ class MigrateCourseIdsTests(TestCase):
...
@@ -81,7 +81,7 @@ class MigrateCourseIdsTests(TestCase):
# Run the data migration
# Run the data migration
migrate_courseids
.
Command
()
.
handle
()
migrate_
project_
courseids
.
Command
()
.
handle
()
# Confirm that the data has been properly migrated
# Confirm that the data has been properly migrated
...
...
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