From 55dc65753ed5addcd5bbe0771c2ad9ec1da56551 Mon Sep 17 00:00:00 2001 From: mongkok Date: Sat, 3 Feb 2018 21:12:35 +0530 Subject: [PATCH] Test custom meta .setdefault() --- graphene_django/tests/test_types.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/graphene_django/tests/test_types.py b/graphene_django/tests/test_types.py index a69870da7..2ffabb2b4 100644 --- a/graphene_django/tests/test_types.py +++ b/graphene_django/tests/test_types.py @@ -76,9 +76,9 @@ class Meta: abstract = True @classmethod - def __init_subclass_with_meta__(cls, _meta=None, **options): - _meta = ArticleTypeOptions(cls) - super(ArticleType, cls).__init_subclass_with_meta__(_meta=_meta, **options) + def __init_subclass_with_meta__(cls, **options): + options.setdefault('_meta', ArticleTypeOptions(cls)) + super(ArticleType, cls).__init_subclass_with_meta__(**options) class Article(ArticleType): class Meta: