Skip to content

Commit

Permalink
ignore the DeprecationWarning about typing.ByteString in graphql
Browse files Browse the repository at this point in the history
  • Loading branch information
PoByBolek committed Jul 4, 2024
1 parent c127aec commit 9ecf322
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ecf322

Please sign in to comment.