graphql-python / graphene-django

Build powerful, efficient, and flexible GraphQL APIs with seamless Django integration.
http://docs.graphene-python.org/projects/django/en/latest/
MIT License
4.31k stars 770 forks source link

use unittest.mock instead of mock #1321

Closed pgajdos closed 2 years ago

pgajdos commented 2 years ago

Could you please consider to utilize unittest.mock instead of mock?

Background: https://fedoraproject.org/wiki/Changes/DeprecatePythonMock https://trello.com/c/S6eADbii/64-remove-python-mock

pgajdos commented 2 years ago

At least 3.8, 3.9 and 3.10 testsuite works with that: https://build.opensuse.org/package/show/home:pgajdos:python/python-graphene-django/

ulgens commented 2 years ago

@pgajdos It seems this is resolved by https://github.com/graphql-python/graphene-django/pull/1336 If you think the problem still exists, feel free to reopen this issue.