Remove python_type from color (this might have some side effects)

This commit is contained in:
Konsta Vesterinen
2013-10-24 16:58:35 +03:00
parent 7760d87fdb
commit 076ee49f8f
2 changed files with 0 additions and 5 deletions

View File

@@ -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.

View File

@@ -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