Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions graphene_django/tests/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def inner(*args, **kwargs):

@with_local_registry
def test_django_objecttype_only_fields():
with pytest.warns(PendingDeprecationWarning):
with pytest.warns(DeprecationWarning):

class Reporter(DjangoObjectType):
class Meta:
Expand Down Expand Up @@ -347,7 +347,7 @@ class Meta:

@with_local_registry
def test_django_objecttype_exclude_fields():
with pytest.warns(PendingDeprecationWarning):
with pytest.warns(DeprecationWarning):

class Reporter(DjangoObjectType):
class Meta:
Expand Down
4 changes: 2 additions & 2 deletions graphene_django/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def __init_subclass_with_meta__(
if only_fields:
warnings.warn(
"Defining `only_fields` is deprecated in favour of `fields`.",
PendingDeprecationWarning,
DeprecationWarning,
stacklevel=2,
)
fields = only_fields
Expand All @@ -210,7 +210,7 @@ def __init_subclass_with_meta__(
if exclude_fields:
warnings.warn(
"Defining `exclude_fields` is deprecated in favour of `exclude`.",
PendingDeprecationWarning,
DeprecationWarning,
stacklevel=2,
)
exclude = exclude_fields
Expand Down