From 0a3c2f742fea5f7dfd183b82d9f9227935d40da8 Mon Sep 17 00:00:00 2001 From: Florian Zimmermann Date: Thu, 4 Jul 2024 11:27:12 +0200 Subject: [PATCH] treat warnings as errors when running the tests --- Makefile | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 633c83f..1286a61 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ dev-setup: .PHONY: tests ## Run unit tests tests: - PYTHONPATH=. pytest graphene_django --cov=graphene_django -vv + PYTHONPATH=. pytest -Werror graphene_django --cov=graphene_django -vv .PHONY: format ## Format code format: diff --git a/tox.ini b/tox.ini index 9a9dc14..81c0572 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 --cov=graphene_django graphene_django examples} +commands = {posargs:pytest -Werror --cov=graphene_django graphene_django examples} [testenv:pre-commit] skip_install = true