From ec3e60e7ee32d3b64c941c1dc54a9063335400b6 Mon Sep 17 00:00:00 2001 From: Arun Suresh Kumar Date: Tue, 11 Apr 2023 17:20:50 +0530 Subject: [PATCH] Fix: Test Case --- graphene_mongo/tests/test_query.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/graphene_mongo/tests/test_query.py b/graphene_mongo/tests/test_query.py index bec6875b..1a1f302f 100644 --- a/graphene_mongo/tests/test_query.py +++ b/graphene_mongo/tests/test_query.py @@ -118,6 +118,7 @@ async def resolve_reporter(self, *args, **kwargs): assert result.data == expected +@pytest.mark.asyncio async def test_should_custom_kwargs(fixtures): class Query(graphene.ObjectType): editors = graphene.List(types.EditorType, first=graphene.Int()) @@ -148,6 +149,7 @@ async def resolve_editors(self, *args, **kwargs): assert result.data == expected +@pytest.mark.asyncio async def test_should_self_reference(fixtures): class Query(graphene.ObjectType): all_players = graphene.List(types.PlayerType) @@ -194,6 +196,7 @@ async def resolve_all_players(self, *args, **kwargs): assert result.data == expected +@pytest.mark.asyncio async def test_should_query_with_embedded_document(fixtures): class Query(graphene.ObjectType): professor_vector = graphene.Field( @@ -223,6 +226,7 @@ async def resolve_professor_vector(self, info, id): assert result.data == expected +@pytest.mark.asyncio async def test_should_query_child(fixtures): class Query(graphene.ObjectType): children = graphene.List(types.ChildType) @@ -259,6 +263,7 @@ async def resolve_children(self, *args, **kwargs): assert result.data == expected +@pytest.mark.asyncio async def test_should_query_other_childs(fixtures): class Query(graphene.ObjectType): children = graphene.List(types.AnotherChildType) @@ -295,6 +300,7 @@ async def resolve_children(self, *args, **kwargs): assert result.data == expected +@pytest.mark.asyncio async def test_should_query_all_childs(fixtures): class Query(graphene.ObjectType): children = graphene.List(types.ChildUnionType) @@ -348,6 +354,7 @@ async def resolve_children(self, *args, **kwargs): assert result.data == expected +@pytest.mark.asyncio async def test_should_query_cell_tower(fixtures): class Query(graphene.ObjectType): cell_towers = graphene.List(types.CellTowerType)