From a13812606cc49909eb0bdceccfd899359e098ca2 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 28 Oct 2012 18:23:57 -0400 Subject: - remove remote_foreign annotation - support annotations on Column where name isn't immediately present --- test/sql/test_selectable.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/sql/test_selectable.py') diff --git a/test/sql/test_selectable.py b/test/sql/test_selectable.py index bbf7eeab1..35d5a0b05 100644 --- a/test/sql/test_selectable.py +++ b/test/sql/test_selectable.py @@ -1277,6 +1277,13 @@ class AnnotationsTest(fixtures.TestBase): assert x_p.compare(x_p_a) assert not x_p_a.compare(x_a) + def test_late_name_add(self): + from sqlalchemy.schema import Column + c1 = Column(Integer) + c1_a = c1._annotate({"foo": "bar"}) + c1.name = 'somename' + eq_(c1_a.name, 'somename') + def test_custom_constructions(self): from sqlalchemy.schema import Column class MyColumn(Column): -- cgit v1.2.1