-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add manufacture_data django command
build: add edx-django-utils 5.10.1 docs: update docstring feat: Add academy/curation model factories chore: isort fix fix: ContentMetadataFactory now generates unique content_key feat: condense fake content_key build: remove common_constraints.txt. file
- Loading branch information
1 parent
19e9787
commit a90cf82
Showing
10 changed files
with
42 additions
and
20 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
enterprise_catalog/apps/catalog/management/commands/manufacture_data.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
""" | ||
Management command for making instances of models with test factories. | ||
""" | ||
|
||
from edx_django_utils.data_generation.management.commands.manufacture_data import \ | ||
Command as BaseCommand | ||
|
||
from enterprise_catalog.apps.academy.tests.factories import * | ||
from enterprise_catalog.apps.catalog.tests.factories import * | ||
from enterprise_catalog.apps.curation.tests.factories import * | ||
|
||
|
||
class Command(BaseCommand): | ||
""" | ||
Management command for generating Django records from factories with custom attributes | ||
Example usage: | ||
$ ./manage.py manufacture_data --model enterprise_catalog.apps.catalog.models.EnterpriseCatalog / | ||
-title "Test Catalog" | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters