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 #196

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,15 @@
"""
Management command for making things with test factories
"""

from edx_django_utils.data_generation.management.commands.manufacture_data import Command as BaseCommand

from enterprise_subsidy.apps.subsidy.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_subsidy.apps.subsidy.models.Subsidy --title "Test Subsidy"
"""
6 changes: 3 additions & 3 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ djangorestframework==3.14.0
# edx-drf-extensions
drf-jwt==1.19.2
# via edx-drf-extensions
drf-spectacular==0.27.0
drf-spectacular==0.27.1
# via -r requirements/base.in
drf-yasg==1.21.7
# via -r requirements/base.in
Expand All @@ -117,7 +117,7 @@ edx-django-release-util==1.3.0
# via
# -r requirements/base.in
# openedx-ledger
edx-django-utils==5.9.0
edx-django-utils==5.10.1
# via
# -r requirements/base.in
# edx-drf-extensions
Expand Down Expand Up @@ -156,7 +156,7 @@ jsonfield2==4.0.0.post0
# via
# -r requirements/base.in
# openedx-ledger
jsonschema==4.20.0
jsonschema==4.21.0
# via drf-spectacular
jsonschema-specifications==2023.12.1
# via jsonschema
Expand Down
2 changes: 1 addition & 1 deletion requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ tomli==2.0.1
# via
# pyproject-api
# tox
tox==4.12.0
tox==4.12.1
# via -r requirements/ci.in
virtualenv==20.25.0
# via tox
5 changes: 5 additions & 0 deletions requirements/common_constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
# See BOM-2721 for more details.
# Below is the copied and edited version of common_constraints

# 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.
#
Expand Down
33 changes: 33 additions & 0 deletions requirements/common_constraints.txt.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 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

# 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
3.0.0
8 changes: 4 additions & 4 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ drf-jwt==1.19.2
# via
# -r requirements/validation.txt
# edx-drf-extensions
drf-spectacular==0.27.0
drf-spectacular==0.27.1
# via -r requirements/validation.txt
drf-yasg==1.21.7
# via -r requirements/validation.txt
Expand All @@ -202,7 +202,7 @@ edx-django-release-util==1.3.0
# via
# -r requirements/validation.txt
# openedx-ledger
edx-django-utils==5.9.0
edx-django-utils==5.10.1
# via
# -r requirements/validation.txt
# edx-drf-extensions
Expand Down Expand Up @@ -298,7 +298,7 @@ jsonfield2==4.0.0.post0
# via
# -r requirements/validation.txt
# openedx-ledger
jsonschema==4.20.0
jsonschema==4.21.0
# via
# -r requirements/validation.txt
# drf-spectacular
Expand Down Expand Up @@ -619,7 +619,7 @@ tomlkit==0.12.3
# via
# -r requirements/validation.txt
# pylint
tox==4.12.0
tox==4.12.1
# via -r requirements/validation.txt
twine==4.0.2
# via -r requirements/validation.txt
Expand Down
10 changes: 5 additions & 5 deletions requirements/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ backports-zoneinfo==0.2.1
# via
# -r requirements/test.txt
# django
beautifulsoup4==4.12.2
beautifulsoup4==4.12.3
# via pydata-sphinx-theme
build==1.0.3
# via -r requirements/doc.in
Expand Down Expand Up @@ -194,7 +194,7 @@ drf-jwt==1.19.2
# via
# -r requirements/test.txt
# edx-drf-extensions
drf-spectacular==0.27.0
drf-spectacular==0.27.1
# via -r requirements/test.txt
drf-yasg==1.21.7
# via -r requirements/test.txt
Expand All @@ -204,7 +204,7 @@ edx-django-release-util==1.3.0
# via
# -r requirements/test.txt
# openedx-ledger
edx-django-utils==5.9.0
edx-django-utils==5.10.1
# via
# -r requirements/test.txt
# edx-drf-extensions
Expand Down Expand Up @@ -296,7 +296,7 @@ jsonfield2==4.0.0.post0
# via
# -r requirements/test.txt
# openedx-ledger
jsonschema==4.20.0
jsonschema==4.21.0
# via
# -r requirements/test.txt
# drf-spectacular
Expand Down Expand Up @@ -606,7 +606,7 @@ tomlkit==0.12.3
# via
# -r requirements/test.txt
# pylint
tox==4.12.0
tox==4.12.1
# via -r requirements/test.txt
twine==4.0.2
# via -r requirements/doc.in
Expand Down
6 changes: 3 additions & 3 deletions requirements/production.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ drf-jwt==1.19.2
# via
# -r requirements/base.txt
# edx-drf-extensions
drf-spectacular==0.27.0
drf-spectacular==0.27.1
# via -r requirements/base.txt
drf-yasg==1.21.7
# via -r requirements/base.txt
Expand All @@ -135,7 +135,7 @@ edx-django-release-util==1.3.0
# via
# -r requirements/base.txt
# openedx-ledger
edx-django-utils==5.9.0
edx-django-utils==5.10.1
# via
# -r requirements/base.txt
# edx-drf-extensions
Expand Down Expand Up @@ -188,7 +188,7 @@ jsonfield2==4.0.0.post0
# via
# -r requirements/base.txt
# openedx-ledger
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 @@ -175,7 +175,7 @@ drf-jwt==1.19.2
# via
# -r requirements/test.txt
# edx-drf-extensions
drf-spectacular==0.27.0
drf-spectacular==0.27.1
# via -r requirements/test.txt
drf-yasg==1.21.7
# via -r requirements/test.txt
Expand All @@ -185,7 +185,7 @@ edx-django-release-util==1.3.0
# via
# -r requirements/test.txt
# openedx-ledger
edx-django-utils==5.9.0
edx-django-utils==5.10.1
# via
# -r requirements/test.txt
# edx-drf-extensions
Expand Down Expand Up @@ -275,7 +275,7 @@ jsonfield2==4.0.0.post0
# via
# -r requirements/test.txt
# openedx-ledger
jsonschema==4.20.0
jsonschema==4.21.0
# via
# -r requirements/test.txt
# drf-spectacular
Expand Down Expand Up @@ -549,7 +549,7 @@ tomlkit==0.12.3
# via
# -r requirements/test.txt
# pylint
tox==4.12.0
tox==4.12.1
# via -r requirements/test.txt
twine==4.0.2
# via -r requirements/quality.in
Expand Down
8 changes: 4 additions & 4 deletions requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ drf-jwt==1.19.2
# via
# -r requirements/base.txt
# edx-drf-extensions
drf-spectacular==0.27.0
drf-spectacular==0.27.1
# via -r requirements/base.txt
drf-yasg==1.21.7
# via -r requirements/base.txt
Expand All @@ -167,7 +167,7 @@ edx-django-release-util==1.3.0
# via
# -r requirements/base.txt
# openedx-ledger
edx-django-utils==5.9.0
edx-django-utils==5.10.1
# via
# -r requirements/base.txt
# edx-drf-extensions
Expand Down Expand Up @@ -232,7 +232,7 @@ jsonfield2==4.0.0.post0
# via
# -r requirements/base.txt
# openedx-ledger
jsonschema==4.20.0
jsonschema==4.21.0
# via
# -r requirements/base.txt
# drf-spectacular
Expand Down Expand Up @@ -448,7 +448,7 @@ tomli==2.0.1
# tox
tomlkit==0.12.3
# via pylint
tox==4.12.0
tox==4.12.1
# via -r requirements/test.in
typing-extensions==4.9.0
# via
Expand Down
8 changes: 4 additions & 4 deletions requirements/validation.txt
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ drf-jwt==1.19.2
# -r requirements/quality.txt
# -r requirements/test.txt
# edx-drf-extensions
drf-spectacular==0.27.0
drf-spectacular==0.27.1
# via
# -r requirements/quality.txt
# -r requirements/test.txt
Expand All @@ -232,7 +232,7 @@ edx-django-release-util==1.3.0
# -r requirements/quality.txt
# -r requirements/test.txt
# openedx-ledger
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 @@ -346,7 +346,7 @@ jsonfield2==4.0.0.post0
# -r requirements/quality.txt
# -r requirements/test.txt
# openedx-ledger
jsonschema==4.20.0
jsonschema==4.21.0
# via
# -r requirements/quality.txt
# -r requirements/test.txt
Expand Down Expand Up @@ -703,7 +703,7 @@ tomlkit==0.12.3
# -r requirements/quality.txt
# -r requirements/test.txt
# pylint
tox==4.12.0
tox==4.12.1
# via
# -r requirements/quality.txt
# -r requirements/test.txt
Expand Down
Loading