Changeset 467
- Timestamp:
- 09/24/09 20:45:29 (4 years ago)
- Location:
- elixir/trunk/tests
- Files:
-
- 23 modified
-
test_acts_as_list.py (modified) (2 diffs)
-
test_associable.py (modified) (1 diff)
-
test_autoload_mixed.py (modified) (1 diff)
-
test_autosetup.py (modified) (4 diffs)
-
test_class_methods.py (modified) (1 diff)
-
test_collections.py (modified) (1 diff)
-
test_custombase.py (modified) (1 diff)
-
test_dict.py (modified) (2 diffs)
-
test_encryption.py (modified) (1 diff)
-
test_events.py (modified) (2 diffs)
-
test_fields.py (modified) (1 diff)
-
test_inherit.py (modified) (1 diff)
-
test_m2o.py (modified) (1 diff)
-
test_o2m.py (modified) (1 diff)
-
test_o2o.py (modified) (1 diff)
-
test_options.py (modified) (5 diffs)
-
test_order_by.py (modified) (1 diff)
-
test_packages.py (modified) (1 diff)
-
test_perform_ddl.py (modified) (1 diff)
-
test_properties.py (modified) (1 diff)
-
test_sa_integration.py (modified) (2 diffs)
-
test_through.py (modified) (1 diff)
-
test_versioning.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
elixir/trunk/tests/test_acts_as_list.py
r354 r467 27 27 todos = OneToMany('ToDo', order_by='position') 28 28 29 metadata.bind = 'sqlite:// /'29 metadata.bind = 'sqlite://' 30 30 31 31 setup_all(True) … … 111 111 def test_acts_as_list_autoload(self): 112 112 # Make autoload test fixture 113 meta = MetaData('sqlite:// /')113 meta = MetaData('sqlite://') 114 114 115 115 preloaded_table = Table('preloaded', meta, -
elixir/trunk/tests/test_associable.py
r363 r467 10 10 11 11 def setup(): 12 # metadata.bind = create_engine('sqlite:// /', echo=True)13 metadata.bind = 'sqlite:// /'12 # metadata.bind = create_engine('sqlite://', echo=True) 13 metadata.bind = 'sqlite://' 14 14 15 15 class TestOrders(object): -
elixir/trunk/tests/test_autoload_mixed.py
r347 r467 2 2 3 3 def setup(): 4 metadata.bind = 'sqlite:// /'4 metadata.bind = 'sqlite://' 5 5 6 6 def teardown(): -
elixir/trunk/tests/test_autosetup.py
r462 r467 9 9 10 10 def setup(): 11 metadata.bind = 'sqlite:// /'11 metadata.bind = 'sqlite://' 12 12 13 13 def teardown(): … … 32 32 assert isinstance(metadata.tables['person'], Table) 33 33 34 # jeeez, this used to lock up hard the program35 34 def test_cleanup_before_setup(self): 36 35 class Person(Entity): … … 52 51 some_field = Field(Boolean, default=False) 53 52 54 metadata.bind = 'sqlite:// /'53 metadata.bind = 'sqlite://' 55 54 56 55 drop_all() … … 68 67 69 68 assert 'person' not in metadata.tables 70 assert Person.table ==None69 assert Person.table is None 71 70 72 71 # check that accessing the table didn't trigger the setup -
elixir/trunk/tests/test_class_methods.py
r349 r467 9 9 class TestOldMethods(object): 10 10 def setup(self): 11 metadata.bind = 'sqlite:// /'11 metadata.bind = 'sqlite://' 12 12 13 13 def teardown(self): -
elixir/trunk/tests/test_collections.py
r442 r467 9 9 10 10 def setup(): 11 metadata.bind = 'sqlite:// /'11 metadata.bind = 'sqlite://' 12 12 13 13 def teardown(): -
elixir/trunk/tests/test_custombase.py
r453 r467 6 6 7 7 def setup(): 8 metadata.bind = 'sqlite:// /'8 metadata.bind = 'sqlite://' 9 9 10 10 global MyBase -
elixir/trunk/tests/test_dict.py
r449 r467 7 7 8 8 def setup(): 9 metadata.bind = 'sqlite:// /'9 metadata.bind = 'sqlite://' 10 10 11 11 global Table1, Table2, Table3 … … 158 158 class TestSetOnAliasedColumn(object): 159 159 def setup(self): 160 metadata.bind = 'sqlite:// /'160 metadata.bind = 'sqlite://' 161 161 session.clear() 162 162 -
elixir/trunk/tests/test_encryption.py
r446 r467 20 20 21 21 22 metadata.bind = 'sqlite:// /'22 metadata.bind = 'sqlite://' 23 23 setup_all() 24 24 -
elixir/trunk/tests/test_events.py
r419 r467 75 75 pre_any = before_insert(before_update(before_delete(pre_any))) 76 76 77 metadata.bind = 'sqlite:// /'77 metadata.bind = 'sqlite://' 78 78 setup_all(True) 79 79 … … 130 130 name = Field(String(50)) 131 131 132 metadata.bind = 'sqlite:// /'132 metadata.bind = 'sqlite://' 133 133 setup_all(True) 134 134 -
elixir/trunk/tests/test_fields.py
r383 r467 6 6 7 7 def setup(): 8 metadata.bind = 'sqlite:// /'8 metadata.bind = 'sqlite://' 9 9 10 10 class TestFields(object): -
elixir/trunk/tests/test_inherit.py
r442 r467 8 8 9 9 def setup(): 10 metadata.bind = 'sqlite:// /'10 metadata.bind = 'sqlite://' 11 11 # metadata.bind = 'postgres://@/test' 12 12 # metadata.bind.echo = True -
elixir/trunk/tests/test_m2o.py
r443 r467 6 6 7 7 def setup(): 8 metadata.bind = 'sqlite:// /'8 metadata.bind = 'sqlite://' 9 9 10 10 class TestManyToOne(object): -
elixir/trunk/tests/test_o2m.py
r442 r467 8 8 9 9 def setup(): 10 metadata.bind = 'sqlite:// /'10 metadata.bind = 'sqlite://' 11 11 12 12 class TestOneToMany(object): -
elixir/trunk/tests/test_o2o.py
r349 r467 2 2 3 3 def setup(): 4 metadata.bind = "sqlite:// /"4 metadata.bind = "sqlite://" 5 5 6 6 class TestOneToOne(object): -
elixir/trunk/tests/test_options.py
r457 r467 10 10 class TestOptions(object): 11 11 def setup(self): 12 metadata.bind = 'sqlite:// /'12 metadata.bind = 'sqlite://' 13 13 14 14 def teardown(self): … … 113 113 114 114 def test_manual_session(self): 115 engine = create_engine('sqlite:// /')115 engine = create_engine('sqlite://') 116 116 117 117 class Person(Entity): … … 141 141 142 142 def test_scoped_session(self): 143 engine = create_engine('sqlite:// /')143 engine = create_engine('sqlite://') 144 144 Session = scoped_session(sessionmaker(bind=engine)) 145 145 … … 162 162 global __session__ 163 163 164 engine = create_engine('sqlite:// /')164 engine = create_engine('sqlite://') 165 165 session = scoped_session(sessionmaker(bind=engine)) 166 166 __session__ = session … … 184 184 class TestTableOptions(object): 185 185 def setup(self): 186 metadata.bind = 'sqlite:// /'186 metadata.bind = 'sqlite://' 187 187 188 188 def teardown(self): -
elixir/trunk/tests/test_order_by.py
r442 r467 29 29 records = ManyToMany('Record', order_by='-title') 30 30 31 metadata.bind = 'sqlite:// /'31 metadata.bind = 'sqlite://' 32 32 setup_all(True) 33 33 -
elixir/trunk/tests/test_packages.py
r442 r467 8 8 9 9 def setup(): 10 metadata.bind = 'sqlite:// /'10 metadata.bind = 'sqlite://' 11 11 sys.modules.pop('tests.a', None) 12 12 sys.modules.pop('tests.b', None) -
elixir/trunk/tests/test_perform_ddl.py
r442 r467 4 4 5 5 def setup(): 6 metadata.bind = "sqlite:// /"6 metadata.bind = "sqlite://" 7 7 8 8 -
elixir/trunk/tests/test_properties.py
r456 r467 8 8 9 9 def setup(): 10 metadata.bind = 'sqlite:// /'10 metadata.bind = 'sqlite://' 11 11 12 12 -
elixir/trunk/tests/test_sa_integration.py
r457 r467 9 9 class TestSQLAlchemyToElixir(object): 10 10 def setup(self): 11 metadata.bind = "sqlite:// /"11 metadata.bind = "sqlite://" 12 12 13 13 def teardown(self): … … 51 51 class TestElixirToSQLAlchemy(object): 52 52 def setup(self): 53 metadata.bind = "sqlite:// /"53 metadata.bind = "sqlite://" 54 54 55 55 def teardown(self): -
elixir/trunk/tests/test_through.py
r347 r467 7 7 8 8 def setup(): 9 metadata.bind = 'sqlite:// /'9 metadata.bind = 'sqlite://' 10 10 11 11 -
elixir/trunk/tests/test_versioning.py
r409 r467 42 42 43 43 setup_all() 44 metadata.bind = 'sqlite:// /'44 metadata.bind = 'sqlite://' 45 45 46 46
