-
Notifications
You must be signed in to change notification settings - Fork 30
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
- Loading branch information
1 parent
52f02b7
commit c9c5718
Showing
9 changed files
with
74 additions
and
29 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
license_manager/apps/subscriptions/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,17 @@ | ||
""" | ||
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 license_manager.apps.subscriptions.tests.factories import * | ||
|
||
|
||
class Command(BaseCommand): | ||
""" | ||
Management command for generating Django records from factories with custom attributes | ||
Example usage: | ||
TODO | ||
$ ./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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# This is a temporary solution to override the real common_constraints.txt | ||
# In edx-lint, until the pyjwt constraint in edx-lint has been removed. | ||
# See BOM-2721 for more details. | ||
# Below is the copied and edited version of common_constraints | ||
|
||
# A central location for most common version constraints | ||
# (across edx repos) for pip-installation. | ||
# | ||
# Similar to other constraint files this file doesn't install any packages. | ||
# It specifies version constraints that will be applied if a package is needed. | ||
# When pinning something here, please provide an explanation of why it is a good | ||
# idea to pin this package across all edx repos, Ideally, link to other information | ||
# that will help people in the future to remove the pin when possible. | ||
# Writing an issue against the offending project and linking to it here is good. | ||
# | ||
# Note: Changes to this file will automatically be used by other repos, referencing | ||
# this file from Github directly. It does not require packaging in edx-lint. | ||
|
||
|
||
# using LTS django version | ||
|
||
|
||
# elasticsearch>=7.14.0 includes breaking changes in it which caused issues in discovery upgrade process. | ||
# elastic search changelog: https://www.elastic.co/guide/en/enterprise-search/master/release-notes-7.14.0.html | ||
elasticsearch<7.14.0 | ||
|
||
# django-simple-history>3.0.0 adds indexing and causes a lot of migrations to be affected | ||
django-simple-history==3.0.0 |
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