File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ def inner(*args, **kwargs):
263
263
264
264
@with_local_registry
265
265
def test_django_objecttype_only_fields ():
266
- with pytest .warns (PendingDeprecationWarning ):
266
+ with pytest .warns (DeprecationWarning ):
267
267
268
268
class Reporter (DjangoObjectType ):
269
269
class Meta :
@@ -320,7 +320,7 @@ class Meta:
320
320
321
321
@with_local_registry
322
322
def test_django_objecttype_exclude_fields ():
323
- with pytest .warns (PendingDeprecationWarning ):
323
+ with pytest .warns (DeprecationWarning ):
324
324
325
325
class Reporter (DjangoObjectType ):
326
326
class Meta :
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ def __init_subclass_with_meta__(
194
194
if only_fields :
195
195
warnings .warn (
196
196
"Defining `only_fields` is deprecated in favour of `fields`." ,
197
- PendingDeprecationWarning ,
197
+ DeprecationWarning ,
198
198
stacklevel = 2 ,
199
199
)
200
200
fields = only_fields
@@ -210,7 +210,7 @@ def __init_subclass_with_meta__(
210
210
if exclude_fields :
211
211
warnings .warn (
212
212
"Defining `exclude_fields` is deprecated in favour of `exclude`." ,
213
- PendingDeprecationWarning ,
213
+ DeprecationWarning ,
214
214
stacklevel = 2 ,
215
215
)
216
216
exclude = exclude_fields
You can’t perform that action at this time.
0 commit comments