From 076ee49f8fcddbe8b0379ef6519ddd1408488c8f Mon Sep 17 00:00:00 2001 From: Konsta Vesterinen Date: Thu, 24 Oct 2013 16:58:35 +0300 Subject: [PATCH] Remove python_type from color (this might have some side effects) --- sqlalchemy_utils/types/color.py | 1 - tests/types/test_color.py | 4 ---- 2 files changed, 5 deletions(-) diff --git a/sqlalchemy_utils/types/color.py b/sqlalchemy_utils/types/color.py index e8f35e8..5fb4791 100644 --- a/sqlalchemy_utils/types/color.py +++ b/sqlalchemy_utils/types/color.py @@ -17,7 +17,6 @@ class ColorType(types.TypeDecorator, ScalarCoercible): """ STORE_FORMAT = u'hex' impl = types.Unicode(20) - python_type = colour.Color def __init__(self, max_length=20, *args, **kwargs): # Fail if colour is not found. diff --git a/tests/types/test_color.py b/tests/types/test_color.py index 7165222..59eb512 100644 --- a/tests/types/test_color.py +++ b/tests/types/test_color.py @@ -18,10 +18,6 @@ class TestColorType(TestCase): self.Document = Document - def test_python_type(self): - type_ = self.Document.__table__.c.bg_color.type - assert type_.python_type == color.colour.Color - def test_color_parameter_processing(self): from colour import Color