graphene-django/graphene_django/utils
Tonye Jack 5cee41407c
Added GraphQLTransactionTestCase (#1099)
* Added GraphQLTransactionTestCase

- Adds support for testing code that is executed within a transaction

Reference: https://docs.djangoproject.com/en/3.1/topics/testing/tools/#django.test.TransactionTestCase
```
 For instance, you cannot test that a block of code is executing within a transaction, as is required when using select_for_update(). In those cases, you should use TransactionTestCase.
```

* Update testing.py

* Update testing.py

* Fixed formatting.

* Updated docs.

* Updated test.

* Update testing.rst
2021-02-22 20:24:02 -08:00
..
tests Fix backward compability on GraphQLTestCase._client setter (#1094) 2021-01-09 19:14:54 -08:00
__init__.py Python 3 (#904) 2020-04-06 13:21:07 +01:00
str_converters.py WIP: Merge master into v3 (#1086) 2020-12-30 15:37:57 -08:00
testing.py Added GraphQLTransactionTestCase (#1099) 2021-02-22 20:24:02 -08:00
utils.py WIP: Merge master into v3 (#1086) 2020-12-30 15:37:57 -08:00