Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add manufacture_data django command #564

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"""
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 license_manager.apps.subscriptions.models.SubscriptionPlan /
--title "Test Subscription Plan"
"""
8 changes: 4 additions & 4 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ backports-zoneinfo[tzdata]==0.2.1
# kombu
billiard==4.2.0
# via celery
boto3==1.34.19
boto3==1.34.21
# via django-ses
botocore==1.34.19
botocore==1.34.21
# via
# boto3
# s3transfer
Expand Down Expand Up @@ -157,7 +157,7 @@ edx-braze-client==0.1.8
# via -r requirements/base.in
edx-celeryutils==1.2.3
# via -r requirements/base.in
edx-django-utils==5.9.0
edx-django-utils==5.10.1
# via
# -r requirements/base.in
# edx-drf-extensions
Expand Down Expand Up @@ -191,7 +191,7 @@ jmespath==1.0.1
# botocore
jsonfield==3.1.0
# via edx-celeryutils
jsonschema==4.20.0
jsonschema==4.21.0
# via drf-spectacular
jsonschema-specifications==2023.12.1
# via jsonschema
Expand Down
28 changes: 28 additions & 0 deletions requirements/common_constraints.txt.
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
8 changes: 4 additions & 4 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ billiard==4.2.0
# via
# -r requirements/validation.txt
# celery
boto3==1.34.19
boto3==1.34.21
# via
# -r requirements/validation.txt
# django-ses
botocore==1.34.19
botocore==1.34.21
# via
# -r requirements/validation.txt
# boto3
Expand Down Expand Up @@ -235,7 +235,7 @@ edx-braze-client==0.1.8
# via -r requirements/validation.txt
edx-celeryutils==1.2.3
# via -r requirements/validation.txt
edx-django-utils==5.9.0
edx-django-utils==5.10.1
# via
# -r requirements/validation.txt
# edx-drf-extensions
Expand Down Expand Up @@ -321,7 +321,7 @@ jsonfield==3.1.0
# via
# -r requirements/validation.txt
# edx-celeryutils
jsonschema==4.20.0
jsonschema==4.21.0
# via
# -r requirements/validation.txt
# drf-spectacular
Expand Down
10 changes: 5 additions & 5 deletions requirements/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ backports-zoneinfo[tzdata]==0.2.1
# celery
# django
# kombu
beautifulsoup4==4.12.2
beautifulsoup4==4.12.3
# via pydata-sphinx-theme
billiard==4.2.0
# via
# -r requirements/test.txt
# celery
boto3==1.34.19
boto3==1.34.21
# via
# -r requirements/test.txt
# django-ses
botocore==1.34.19
botocore==1.34.21
# via
# -r requirements/test.txt
# boto3
Expand Down Expand Up @@ -234,7 +234,7 @@ edx-braze-client==0.1.8
# via -r requirements/test.txt
edx-celeryutils==1.2.3
# via -r requirements/test.txt
edx-django-utils==5.9.0
edx-django-utils==5.10.1
# via
# -r requirements/test.txt
# edx-drf-extensions
Expand Down Expand Up @@ -309,7 +309,7 @@ jsonfield==3.1.0
# via
# -r requirements/test.txt
# edx-celeryutils
jsonschema==4.20.0
jsonschema==4.21.0
# via
# -r requirements/test.txt
# drf-spectacular
Expand Down
8 changes: 4 additions & 4 deletions requirements/production.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ billiard==4.2.0
# via
# -r requirements/base.txt
# celery
boto3==1.34.19
boto3==1.34.21
# via
# -r requirements/base.txt
# django-ses
botocore==1.34.19
botocore==1.34.21
# via
# -r requirements/base.txt
# boto3
Expand Down Expand Up @@ -189,7 +189,7 @@ edx-braze-client==0.1.8
# via -r requirements/base.txt
edx-celeryutils==1.2.3
# via -r requirements/base.txt
edx-django-utils==5.9.0
edx-django-utils==5.10.1
# via
# -r requirements/base.txt
# edx-drf-extensions
Expand Down Expand Up @@ -241,7 +241,7 @@ jsonfield==3.1.0
# via
# -r requirements/base.txt
# edx-celeryutils
jsonschema==4.20.0
jsonschema==4.21.0
# via
# -r requirements/base.txt
# drf-spectacular
Expand Down
8 changes: 4 additions & 4 deletions requirements/quality.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ billiard==4.2.0
# via
# -r requirements/base.txt
# celery
boto3==1.34.19
boto3==1.34.21
# via
# -r requirements/base.txt
# django-ses
botocore==1.34.19
botocore==1.34.21
# via
# -r requirements/base.txt
# boto3
Expand Down Expand Up @@ -201,7 +201,7 @@ edx-braze-client==0.1.8
# via -r requirements/base.txt
edx-celeryutils==1.2.3
# via -r requirements/base.txt
edx-django-utils==5.9.0
edx-django-utils==5.10.1
# via
# -r requirements/base.txt
# edx-drf-extensions
Expand Down Expand Up @@ -255,7 +255,7 @@ jsonfield==3.1.0
# via
# -r requirements/base.txt
# edx-celeryutils
jsonschema==4.20.0
jsonschema==4.21.0
# via
# -r requirements/base.txt
# drf-spectacular
Expand Down
8 changes: 4 additions & 4 deletions requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ billiard==4.2.0
# via
# -r requirements/base.txt
# celery
boto3==1.34.19
boto3==1.34.21
# via
# -r requirements/base.txt
# django-ses
botocore==1.34.19
botocore==1.34.21
# via
# -r requirements/base.txt
# boto3
Expand Down Expand Up @@ -210,7 +210,7 @@ edx-braze-client==0.1.8
# via -r requirements/base.txt
edx-celeryutils==1.2.3
# via -r requirements/base.txt
edx-django-utils==5.9.0
edx-django-utils==5.10.1
# via
# -r requirements/base.txt
# edx-drf-extensions
Expand Down Expand Up @@ -272,7 +272,7 @@ jsonfield==3.1.0
# via
# -r requirements/base.txt
# edx-celeryutils
jsonschema==4.20.0
jsonschema==4.21.0
# via
# -r requirements/base.txt
# drf-spectacular
Expand Down
8 changes: 4 additions & 4 deletions requirements/validation.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ billiard==4.2.0
# -r requirements/quality.txt
# -r requirements/test.txt
# celery
boto3==1.34.19
boto3==1.34.21
# via
# -r requirements/quality.txt
# -r requirements/test.txt
# django-ses
botocore==1.34.19
botocore==1.34.21
# via
# -r requirements/quality.txt
# -r requirements/test.txt
Expand Down Expand Up @@ -279,7 +279,7 @@ edx-celeryutils==1.2.3
# via
# -r requirements/quality.txt
# -r requirements/test.txt
edx-django-utils==5.9.0
edx-django-utils==5.10.1
# via
# -r requirements/quality.txt
# -r requirements/test.txt
Expand Down Expand Up @@ -368,7 +368,7 @@ jsonfield==3.1.0
# -r requirements/quality.txt
# -r requirements/test.txt
# edx-celeryutils
jsonschema==4.20.0
jsonschema==4.21.0
# via
# -r requirements/quality.txt
# -r requirements/test.txt
Expand Down
Loading