Ülgen Sarıkavak
66c8901041
Convert Django form / DRF decimals to Graphene decimals ( #958 )
...
* Convert Django form decimals to Graphene decimals
* Ugly fix for test_should_query_filter_node_limit
* Convert DRF serializer decimal to Graphene decimal
2021-01-09 22:00:11 -08:00
Ignacio Orlandini
8f63199a63
Handle database transactions ( #1039 )
...
* Handle Django database atomic requests
* Create and handle database atomic mutations
* Make code compatible with Python 2.7
* Code style
* Define set_rollback instead of using the one in rest_framework.views because of backward compatibility
* Implement mock.patch.dict
2020-12-22 20:18:14 -08:00
Ülgen Sarıkavak
4c0c821b74
Register MultipleChoiceField as list type ( #1033 )
...
In general I welcome reviews even from non-maintainers to build confidence. I haven't seen any objections and this has sat with approval for a week so I am going to go ahead and merge.
2020-11-28 10:30:18 -08:00
Jean-Louis Fuchs
b9f0e4f9ae
Make tests order independent ( #932 )
...
* Reset the global registry after each test (teardown)
* Create a settings fixtures that returns graphene_settings and resets
the graphene_settings after use (teardown)
* Convert test_mutation tests from unittests.TestCase to pytest
* Convert test_mutation PetType to a pet_type fixtures that reregisters
the type
2020-04-20 13:23:20 +01:00
Jonathan Kim
481d3ff35d
Fix DjangoModelFormMutation ( #915 )
...
* Fix DjangoModelFormMutation
* Try and fix tests
* Remove unused form
2020-04-12 20:01:30 +01:00
Jonathan Kim
9d9a14c36d
Fix failing tests ( #931 )
...
* Use proper model
* Remove failing test
* Add python 3.8 to test list
2020-04-12 16:18:41 +01:00
Sergey Fursov
aeb04d5b5c
use actual root/variables/context args of the execute method ( #878 )
2020-02-23 09:50:40 +00:00
Sergey Protasov
235096362f
Update mutation.py ( #811 )
...
* Update mutation.py
* Add tests
Co-authored-by: Jonathan Kim <jkimbo@gmail.com>
2020-02-23 09:49:39 +00:00
luto
08f67797d8
resolve django translation deprecation warnings ( #847 )
...
https://docs.djangoproject.com/en/3.0/releases/3.0/#id3
2020-01-11 14:52:41 +01:00
Jonathan Kim
96c38b4349
Update Django model form tests ( #839 )
...
* Clean up code and raise an exception if the model type is not found
* Update tests
* Fix tests
2020-01-11 14:49:44 +01:00
Jonathan Kim
0988e0798a
Adds documentation to CAMELCASE_ERRORS
setting ( #689 )
...
* Rename setting and add documentation
* Add examples
* Use `cls`
2019-07-08 22:22:08 +01:00
Jonathan Kim
9aabe2cbe6
Remove duplicate ErrorType ( #701 )
2019-07-07 20:06:01 +01:00
Konstantin Alekseev
e2e496f505
Apply camel case converter to field names in DRF errors ( #514 )
...
* Apply camel case converter to field names in DRF errors
* Implement recursive error camelize, add setting.
2019-06-25 09:40:29 +01:00
Mel van Londen
865c9535b9
Bugfix: FormMutation was always causing boolean fields to be required ( #613 )
...
Bugfix: FormMutation was always causing boolean fields to be required
2019-05-09 11:47:47 -07:00
Paul Hallett
e6ad5887ca
Introduce Black formatting, additional tests
2019-05-02 17:46:35 +01:00
Ronny Vedrilla
29b8ea8398
Bugfix: FormMutation was always causing boolean fields to be required
2019-04-05 14:27:53 +02:00
Patrick Arminio
923d8282c7
Fix duplicated ErrorType declaration ( #539 )
...
* Add failing test case
* Fix duplicated ErrorType declaration
2019-03-31 12:01:43 +01:00
Waldecir Santos
d4a9c2bb89
Fix tests.
2018-07-22 23:53:58 +01:00
Waldecir Santos
c1bd3c4c15
Exclude id from mutation, useful for create operations.
2018-07-22 23:35:11 +01:00
Syrus Akbary
54ef52e1c6
Reformatted files using black
2018-07-19 16:52:24 -07:00
Syrus Akbary
a9d819e1f7
Removed repeated function
2018-06-05 14:24:41 -07:00
Syrus Akbary
10d2f3eea7
Commented the input form class, for now
2018-06-05 14:17:07 -07:00
Syrus Akbary
bb6da28008
Merge branch 'master' into form_mutations
2018-06-05 13:31:29 -07:00
Syrus Akbary
a9e5beb9eb
Merge branch 'master' into form_mutations
...
# Conflicts:
# graphene_django/forms/converter.py
# graphene_django/forms/tests/test_converter.py
2018-06-05 13:23:39 -07:00
Grant McConnaughey
c3938d1e4f
Fix line length
2017-11-29 15:31:26 -06:00
Grant McConnaughey
6d7a0d053d
Make id field an ID type
2017-11-29 15:25:24 -06:00
Grant McConnaughey
748dc4c509
Add id input field to model form mutation
2017-11-29 15:15:16 -06:00
Grant McConnaughey
d6dbe2a4a8
Default return_field_name is camcelcased
2017-11-29 14:20:56 -06:00
Grant McConnaughey
40610c64a3
Support instance kwarg
2017-11-29 14:12:02 -06:00
Grant McConnaughey
bf7ad7eeda
Test invalid forms
2017-10-02 13:15:29 -05:00
Grant McConnaughey
463ce68b16
Change mutations to new 2.0 format
2017-10-02 13:03:20 -05:00
Grant McConnaughey
666ddb2ff3
Merge form converter modules
2017-10-02 09:42:57 -05:00
Grant McConnaughey
f5083cb190
Change form valid method names
2017-10-02 09:32:36 -05:00
Grant McConnaughey
4f904f4700
Test mutation
2017-10-02 09:31:58 -05:00
Grant McConnaughey
80a06a0354
Fix flake8 issue
2017-10-02 09:31:58 -05:00
Grant McConnaughey
26a4d315c5
Use options correctly
2017-10-02 09:31:58 -05:00
Grant McConnaughey
f034946cda
Add Django form-based mutations
2017-10-02 09:31:58 -05:00