Skip to content

Commit a53ddfb

Browse files
committed
Install pytest while running mypy
To avoid mypy warnings, since we run mypy over the tests, and the tests import from pytest.
1 parent a9ae0d9 commit a53ddfb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+52
-50
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pytest configuration
22

3-
import pytest # type: ignore
3+
import pytest
44

55

66
def pytest_addoption(parser):

tests/error/test_format_error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import List, Union
22

3-
from pytest import raises # type: ignore
3+
from pytest import raises
44

55
from graphql.error import GraphQLError, format_error
66
from graphql.language import Node, Source

tests/execution/test_abstract_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import NamedTuple
22

3-
from pytest import mark # type: ignore
3+
from pytest import mark
44

55
from graphql import graphql
66
from graphql.type import (

tests/execution/test_execution_result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from pytest import raises # type: ignore
1+
from pytest import raises
22

33
from graphql.error import GraphQLError
44
from graphql.execution import ExecutionResult

tests/execution/test_executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import asyncio
22
from typing import cast, Any, Awaitable, Optional
33

4-
from pytest import raises, mark # type: ignore
4+
from pytest import mark, raises
55

66
from graphql.error import GraphQLError
77
from graphql.execution import execute, execute_sync

tests/execution/test_lists.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Any
22

3-
from pytest import mark # type: ignore
3+
from pytest import mark
44

55
from graphql.execution import execute, execute_sync, ExecutionResult
66
from graphql.language import parse

tests/execution/test_middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Awaitable
22

3-
from pytest import mark, raises # type: ignore
3+
from pytest import mark, raises
44

55
from graphql.execution import MiddlewareManager, execute
66
from graphql.language.parser import parse

tests/execution/test_mutations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import asyncio
22
from typing import Awaitable
33

4-
from pytest import mark # type: ignore
4+
from pytest import mark
55

66
from graphql.execution import execute, execute_sync
77
from graphql.language import parse

tests/execution/test_nonnull.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import re
22
from typing import Any, Awaitable, cast
33

4-
from pytest import mark # type: ignore
4+
from pytest import mark
55

66
from graphql.execution import execute, execute_sync, ExecutionResult
77
from graphql.language import parse

tests/execution/test_parallel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import asyncio
22
from typing import Awaitable
33

4-
from pytest import mark # type: ignore
4+
from pytest import mark
55

66
from graphql.execution import execute
77
from graphql.language import parse

0 commit comments

Comments
 (0)