Skip to content

Commit

Permalink
fix test on qa tools
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankrb committed Sep 27, 2021
1 parent f618f30 commit c6ce789
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_qa_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__))
Expand All @@ -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)
Expand Down

0 comments on commit c6ce789

Please sign in to comment.