diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-10-28 18:23:57 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-10-28 18:23:57 -0400 |
commit | a13812606cc49909eb0bdceccfd899359e098ca2 (patch) | |
tree | fcc38801fa383ec6a23b7c5121fc030137a5dba8 /test/sql/test_selectable.py | |
parent | 2637c9eddc78e1eceadf544597ec69a9e9b13369 (diff) | |
download | sqlalchemy-a13812606cc49909eb0bdceccfd899359e098ca2.tar.gz |
- remove remote_foreign annotation
- support annotations on Column where name isn't immediately present
Diffstat (limited to 'test/sql/test_selectable.py')
-rw-r--r-- | test/sql/test_selectable.py | 7 |
1 files changed, 7 insertions, 0 deletions
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): |