From 54f6134e9fd82e99700d141fd480375b33cf5485 Mon Sep 17 00:00:00 2001 From: David Baumgold Date: Thu, 25 Feb 2016 09:24:03 -0500 Subject: [PATCH] Use pytest's importorskip functionality for colour module So that tests can run without the colour module installed --- tests/fields/test_color_field.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/fields/test_color_field.py b/tests/fields/test_color_field.py index 2cfec56..ea4985d 100644 --- a/tests/fields/test_color_field.py +++ b/tests/fields/test_color_field.py @@ -1,9 +1,12 @@ +import pytest from wtforms import Form from wtforms_test import FormTestCase from tests import MultiDict from wtforms_components import ColorField +colour = pytest.importorskip("colour") + class TestColorField(FormTestCase): def setup_method(self, method):