graphene-django/graphene_django/tests
ndpu be17278b49
Add DjangoFormInputObjectType to forms/types (#1325)
* Add DjangoFormInputObjectType to forms/types

InputObjectType derived class which gets fields from django form.
Type of fields with choices (converted to enum) is set to custom scalar
type (using Meta.object_type) to dynamically convert enum values back.

* Correct Reporter model a_choice field type according to CHOICES tuple

* Add tests for DjangoFormInputObjectType

* Add pyenv files to .gitignore

* Fix pyupgrade

* Fix tests

* Add docs

* Fix docs example

---------

Co-authored-by: Firas Kafri <3097061+firaskafri@users.noreply.github.com>
2023-05-24 15:58:50 +03:00
..
issues Fix broken UT due to pytest import error (#1368) 2022-11-14 13:56:18 +03:00
__init__.py Isolated Graphene Django in a new package 2016-09-17 16:31:17 -07:00
forms.py WIP: Merge master into v3 (#1086) 2020-12-30 15:37:57 -08:00
models.py Add DjangoFormInputObjectType to forms/types (#1325) 2023-05-24 15:58:50 +03:00
mutations.py WIP: Merge master into v3 (#1086) 2020-12-30 15:37:57 -08:00
schema_view.py Upgrade github actions versions, default python and dev dependencies (#1407) 2023-05-03 13:25:16 +03:00
schema.py Warn if fields or exclude are not defined on DjangoObjectType (#981) 2020-06-11 11:09:52 +01:00
test_command.py 👷 Add pre-commit (#1336) 2022-10-19 17:10:30 +03:00
test_converter.py Fix broken UT due to pytest import error (#1368) 2022-11-14 13:56:18 +03:00
test_fields.py Add test validating query performance with select_related + prefetch_related 2023-05-03 11:37:17 +03:00
test_forms.py Fix broken UT due to pytest import error (#1368) 2022-11-14 13:56:18 +03:00
test_get_queryset.py Remove obsolete tests and add note about rationale 2023-05-03 11:37:17 +03:00
test_query.py Upgrade github actions versions, default python and dev dependencies (#1407) 2023-05-03 13:25:16 +03:00
test_schema.py Fix broken UT due to pytest import error (#1368) 2022-11-14 13:56:18 +03:00
test_types.py 👷 Add pre-commit (#1336) 2022-10-19 17:10:30 +03:00
test_utils.py 👷 Add pre-commit (#1336) 2022-10-19 17:10:30 +03:00
test_views.py 👷 Add pre-commit (#1336) 2022-10-19 17:10:30 +03:00
types.py WIP: Merge master into v3 (#1086) 2020-12-30 15:37:57 -08:00
urls_inherited.py Django v4, python 3.10 support for graphene-django v3 (#1281) 2022-01-07 20:26:07 +00:00
urls_pretty.py Django v4, python 3.10 support for graphene-django v3 (#1281) 2022-01-07 20:26:07 +00:00
urls.py Django v4, python 3.10 support for graphene-django v3 (#1281) 2022-01-07 20:26:07 +00:00