Skip to content

Commit 6d9f0d8

Browse files
committed
Skip test if cookiecutter is not installed
1 parent 8806e5b commit 6d9f0d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pysteps/tests/test_plugins_support.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
https://github.com/pySTEPS/cookiecutter-pysteps-plugin
66
"""
77
import os
8+
import pytest
89
import subprocess
910
import sys
1011
import tempfile
12+
13+
__ = pytest.importorskip("cookiecutter")
1114
from cookiecutter.main import cookiecutter
1215

1316
PLUGIN_TEMPLATE_URL = "https://github.com/pysteps/cookiecutter-pysteps-plugin"

0 commit comments

Comments
 (0)