fix import of colour package
This commit is contained in:

committed by
Konsta Vesterinen

parent
abfb29dfa7
commit
e2e03bd5e2
@@ -5,7 +5,8 @@ from .scalar_coercible import ScalarCoercible
|
|||||||
|
|
||||||
colour = None
|
colour = None
|
||||||
try:
|
try:
|
||||||
from colour import Colour as python_colour_type
|
import colour
|
||||||
|
python_colour_type = colour.Color
|
||||||
except ImportError:
|
except ImportError:
|
||||||
python_colour_type = None
|
python_colour_type = None
|
||||||
|
|
||||||
|
@@ -6,7 +6,7 @@ from sqlalchemy_utils.types import color
|
|||||||
from tests import TestCase
|
from tests import TestCase
|
||||||
|
|
||||||
|
|
||||||
@mark.skipif('color.colour is None')
|
@mark.skipif('color.python_colour_type is None')
|
||||||
class TestColorType(TestCase):
|
class TestColorType(TestCase):
|
||||||
def create_models(self):
|
def create_models(self):
|
||||||
class Document(self.Base):
|
class Document(self.Base):
|
||||||
|
Reference in New Issue
Block a user