summaryrefslogtreecommitdiff
path: root/test/engine/test_ddlevents.py
Commit message (Collapse)AuthorAgeFilesLines
* - replace old crufty ddl event test fixture with mockMike Bayer2015-04-271-95/+164
|
* - Fixed regression due to :ticket:`3282` where the ``tables`` collectionMike Bayer2015-04-271-2/+53
| | | | | | | | | | | | | | | | passed as a keyword argument to the :meth:`.DDLEvents.before_create`, :meth:`.DDLEvents.after_create`, :meth:`.DDLEvents.before_drop`, and :meth:`.DDLEvents.after_drop` events would no longer be a list of tables, but instead a list of tuples which contained a second entry with foreign keys to be added or dropped. As the ``tables`` collection, while documented as not necessarily stable, has come to be relied upon, this change is considered a regression. Additionally, in some cases for "drop", this collection would be an iterator that would cause the operation to fail if prematurely iterated. The collection is now a list of table objects in all cases and test coverage for the format of this collection is now added. fixes #3391
* PEP8 cleanup in /test/enginepr/163Eric Streeper2015-03-201-25/+20
|
* - more pg8000 tests passingMike Bayer2014-07-251-2/+1
|
* - Support has been added for pytest to run tests. This runnerMike Bayer2014-03-031-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | is currently being supported in addition to nose, and will likely be preferred to nose going forward. The nose plugin system used by SQLAlchemy has been split out so that it works under pytest as well. There are no plans to drop support for nose at the moment and we hope that the test suite itself can continue to remain as agnostic of testing platform as possible. See the file README.unittests.rst for updated information on running tests with pytest. The test plugin system has also been enhanced to support running tests against mutiple database URLs at once, by specifying the ``--db`` and/or ``--dburi`` flags multiple times. This does not run the entire test suite for each database, but instead allows test cases that are specific to certain backends make use of that backend as the test is run. When using pytest as the test runner, the system will also run specific test suites multiple times, once for each database, particularly those tests within the "dialect suite". The plan is that the enhanced system will also be used by Alembic, and allow Alembic to run migration operation tests against multiple backends in one run, including third-party backends not included within Alembic itself. Third party dialects and extensions are also encouraged to standardize on SQLAlchemy's test suite as a basis; see the file README.dialects.rst for background on building out from SQLAlchemy's test platform.
* - the raw 2to3 runMike Bayer2013-04-271-1/+1
| | | | - went through examples/ and cleaned out excess list() calls
* trying different approaches to test layout. in this one, the testing modulesMike Bayer2012-09-271-8/+9
| | | | | | | become an externally usable package but still remains within the main sqlalchemy parent package. in this system, we use kind of an ugly hack to get the noseplugin imported outside of the "sqlalchemy" package, while still making it available within sqlalchemy for usage by third party libraries.
* with statementMike Bayer2012-09-011-0/+1
|
* - get all tests within -w engine + pyodbc:mssql on windows to passMike Bayer2012-09-011-13/+20
|
* -whitespace bonanza, contdMike Bayer2012-07-281-9/+9
|
* - Fixed bug whereby adaptation of old append_ddl_listener()Mike Bayer2011-06-301-0/+57
| | | | | | | function was passing unexpected **kw through to the Table event. Table gets no kws, the MetaData event in 0.6 would get "tables=somecollection", this behavior is preserved. [ticket:2206]
* - remove test.sql._base, test.engine._base, test.orm._base, move those ↵Mike Bayer2011-03-271-4/+6
| | | | | | | classes to a new test.lib.fixtures module - move testing.TestBase to test.lib.fixtures - massive search and replace
* fix arg in ddl eventsMike Bayer2011-02-131-2/+2
|
* - whitespace removal bonanzaMike Bayer2011-01-021-12/+12
|
* - removes the "on_" prefix.Mike Bayer2010-12-301-32/+32
|
* - apply pep8 to compiler.pyMike Bayer2010-12-211-1/+1
| | | | | - deprecate Compiled.compile() - have __init__ do compilation if statement is present.
* new calling style: event.listen(target, identifier, fn)Mike Bayer2010-12-011-35/+34
|
* - sqlalchemy.test and nose plugin moves back to being entirelyMike Bayer2010-11-281-5/+5
|\ | | | | | | | | | | | | | | | | | | | | | | outside of "sqlalchemy" and under "test/". Rationale: - coverage plugin works without issue, without need for an awkward additional package install - command line for "nosetests" isn't polluted with SQLAlchemy options [ticket:1949]
| * - move sqlalchemy.test to test.libMike Bayer2010-11-151-5/+5
| |
* | - post_process_text() is called for DDL() constructs, in particular allowingMike Bayer2010-11-281-2/+26
| | | | | | | | | | '%' with only one level of escaping. Note this is backwards-incompatible with previously triple-escaped sections. [ticket:1897]
* | - reorganizationMike Bayer2010-09-141-4/+8
| | | | | | | | | | | | | | - attrbutes.py splits into attribtes.py and instrumentation.py - all the various Event subclasses go into events.py modules - some ideas for orm events - move *Extension out to deprecated_interfaces
* | - refinements to DDL events, including new execute_if(), got pickling to workMike Bayer2010-09-031-27/+128
| |
* | doh, forgot about ddl events. need some work with the pickling.Mike Bayer2010-08-311-32/+38
|/
* Python-tidy test/engine and test/aaa_profiling, 80% auto + 20% manual ↵Mike Bayer2010-07-111-35/+44
| | | | intervention
* - Table.create() and Table.drop() no longer apply metadata-Mike Bayer2010-04-161-3/+0
| | | | level create/drop events. [ticket:1771]
* - added "ddl" argument to the "on" callable of DDLElement [ticket:1538]Mike Bayer2009-10-121-4/+4
| | | | | | - fixed the imports in the "postgres" cleanup dialect - renamed "schema_item" attribute/argument of DDLElement to "target".
* all about DDL eventsMike Bayer2009-09-111-1/+1
|
* merge 0.6 series to trunk.Mike Bayer2009-08-061-21/+51
|
* - unit tests have been migrated from unittest to nose.Mike Bayer2009-06-101-0/+342
See README.unittests for information on how to run the tests. [ticket:970]