From 5804654f65eb03ffeac456bb15bcb53d0f41fe8a Mon Sep 17 00:00:00 2001 From: Kien Dang Date: Fri, 26 May 2023 23:45:00 +0800 Subject: [PATCH] Fix tests --- graphene_django/filter/tests/test_array_field_exact_filter.py | 1 + graphene_django/tests/test_command.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/graphene_django/filter/tests/test_array_field_exact_filter.py b/graphene_django/filter/tests/test_array_field_exact_filter.py index 814fd33..f211466 100644 --- a/graphene_django/filter/tests/test_array_field_exact_filter.py +++ b/graphene_django/filter/tests/test_array_field_exact_filter.py @@ -81,6 +81,7 @@ def test_array_field_exact_empty_list(Query): ] +@pytest.mark.skipif(ArrayField is MissingType, reason="ArrayField should exist") def test_array_field_filter_schema_type(Query): """ Check that the type in the filter is an array field like on the object type. diff --git a/graphene_django/tests/test_command.py b/graphene_django/tests/test_command.py index 297e461..cbbcf2f 100644 --- a/graphene_django/tests/test_command.py +++ b/graphene_django/tests/test_command.py @@ -46,7 +46,7 @@ def test_generate_graphql_file_on_call_graphql_schema(): open_mock.assert_called_once() handle = open_mock() - assert handle.write.called_once() + handle.write.assert_called_once() schema_output = handle.write.call_args[0][0] assert schema_output == dedent(