Changeset 462 for elixir/trunk
- Timestamp:
- 09/24/09 16:56:29 (3 years ago)
- Files:
-
- 1 modified
-
elixir/trunk/tests/test_autosetup.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
elixir/trunk/tests/test_autosetup.py
r347 r462 96 96 97 97 def test_createall(self): 98 assert 'person' not in metadata.tables 99 100 # note that if this test included a ManyToMany relationship, it would 101 # probably fail on SA 0.5.x and later, because the monkey-patched 102 # iterator is never called (but the TriggerProxy is). 98 103 class Person(Entity): 99 104 name = Field(String(30)) 100 105 using_options(autosetup=True, tablename='person') 101 106 107 assert isinstance(metadata.tables['person'], 108 elixir.entity.TriggerProxy) 109 102 110 create_all() 111 103 112 assert isinstance(metadata.tables['person'], Table) 104 113
