mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-23 01:57:08 +03:00
19 lines
374 B
Python
19 lines
374 B
Python
|
import pytest
|
||
|
|
||
|
from graphene_django.settings import graphene_settings as gsettings
|
||
|
|
||
|
from .registry import reset_global_registry
|
||
|
|
||
|
|
||
|
@pytest.fixture(autouse=True)
|
||
|
def reset_registry_fixture(db):
|
||
|
yield None
|
||
|
reset_global_registry()
|
||
|
|
||
|
|
||
|
@pytest.fixture()
|
||
|
def graphene_settings():
|
||
|
settings = dict(gsettings.__dict__)
|
||
|
yield gsettings
|
||
|
gsettings.__dict__ = settings
|