From 9ecf322da1e099b96265ebe3ae8742f533cee647 Mon Sep 17 00:00:00 2001 From: Florian Zimmermann Date: Thu, 4 Jul 2024 14:55:30 +0200 Subject: [PATCH] ignore the DeprecationWarning about typing.ByteString in graphql --- Makefile | 2 +- setup.cfg | 4 ++++ tox.ini | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1286a61..633c83f 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ dev-setup: .PHONY: tests ## Run unit tests tests: - PYTHONPATH=. pytest -Werror graphene_django --cov=graphene_django -vv + PYTHONPATH=. pytest graphene_django --cov=graphene_django -vv .PHONY: format ## Format code format: diff --git a/setup.cfg b/setup.cfg index bd6d271..09dcf69 100644 --- a/setup.cfg +++ b/setup.cfg @@ -10,3 +10,7 @@ omit = */tests/* [tool:pytest] DJANGO_SETTINGS_MODULE = examples.django_test_settings addopts = --random-order +filterwarnings = + error + # we can't do anything about the DeprecationWarning about typing.ByteString in graphql + default:'typing\.ByteString' is deprecated:DeprecationWarning:graphql\.pyutils\.is_iterable diff --git a/tox.ini b/tox.ini index 81c0572..9a9dc14 100644 --- a/tox.ini +++ b/tox.ini @@ -34,7 +34,7 @@ deps = django42: Django>=4.2,<4.3 django50: Django>=5.0,<5.1 djangomain: https://github.com/django/django/archive/main.zip -commands = {posargs:pytest -Werror --cov=graphene_django graphene_django examples} +commands = {posargs:pytest --cov=graphene_django graphene_django examples} [testenv:pre-commit] skip_install = true