From c6ce789caf556746bcd5660eb7ba5d719df7b52a Mon Sep 17 00:00:00 2001 From: Florian Pinault Date: Mon, 27 Sep 2021 11:51:06 +0000 Subject: [PATCH] fix test on qa tools --- tests/test_qa_tools.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_qa_tools.py b/tests/test_qa_tools.py index f16d62b6..e467faf8 100644 --- a/tests/test_qa_tools.py +++ b/tests/test_qa_tools.py @@ -12,8 +12,11 @@ import os from importlib import import_module +import pytest import yaml +from climetlab.testing import MISSING + def get_precommit_version(key): here = os.path.dirname(os.path.dirname(__file__)) @@ -29,6 +32,9 @@ def get_precommit_version(key): return None +@pytest.mark.skipif( + MISSING("black", "isort", "flake8"), reason="QA tools not installed" +) def test_qa_versions(): for name in ["black", "isort", "flake8"]: lib = import_module(name)