Skip to content

Commit e9baf60

Browse files
author
Sebastian Hernandez
committed
Fix main branch tests failing due to wrong instancing of Missing class
1 parent ea593b6 commit e9baf60

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

graphene_django/compat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
class MissingType(object):
2-
pass
2+
def __init__(self, *args, **kwargs):
3+
pass
34

45

56
try:

graphene_django/filter/tests/test_array_field_exact_filter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def test_array_field_exact_empty_list(Query):
8181
]
8282

8383

84+
@pytest.mark.skipif(ArrayField is MissingType, reason="ArrayField should exist")
8485
def test_array_field_filter_schema_type(Query):
8586
"""
8687
Check that the type in the filter is an array field like on the object type.

0 commit comments

Comments
 (0)