summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/plugin/noseplugin.py
Commit message (Collapse)AuthorAgeFilesLines
* - fix issue where nose Failure object comes into play hereMike Bayer2014-09-151-0/+2
|
* - remove some crufty old testing optionsMike Bayer2014-09-141-16/+16
| | | | | | | | - reestablish the "bootstrap" system of loading the test runners in testing/plugin; using the updated approach we just came up with for alembic. Coverage should be fixed now when running either py.test or nose. fixes #3196 - upgrade tox.ini and start using a .coveragerc file
* - repair test finding to not skip the test_suite testsMike Bayer2014-07-301-0/+1
|
* - add support for tags, including include/exclude support.Mike Bayer2014-07-271-4/+9
| | | | simplify tox again now that we can exclude tests more easily
* - apply pep8 formatting to sqlalchemy/sql, sqlalchemy/util, sqlalchemy/dialects,Brian Jarrett2014-07-201-6/+7
| | | | sqlalchemy/orm, sqlalchemy/event, sqlalchemy/testing
* - break up the <authors> copyright comment as part of a passMike Bayer2014-07-091-1/+2
| | | | to get all flake8 passing
* use importlib.machinery to load modules instead of imp under Python 3.3 and ↵Matt Chisholm2014-04-141-2/+7
| | | | | | greater part of #2830
* - fixes to multi-backend testsMike Bayer2014-03-271-1/+3
| | | | | - move the logic to determine "test id" into plugin_base - update callcounts
* - Support has been added for pytest to run tests. This runnerMike Bayer2014-03-031-412/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* - happy new yearMike Bayer2014-01-051-1/+1
|
* - enhance the exclusions system to support database versions within the ↵Mike Bayer2013-12-171-6/+9
| | | | __only_on__ attribute
* - add copyright to source files missing itMike Bayer2013-10-261-0/+6
|
* - A large refactoring of the ``sqlalchemy.sql`` package has reorganizedMike Bayer2013-08-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | the import structure of many core modules. ``sqlalchemy.schema`` and ``sqlalchemy.types`` remain in the top-level package, but are now just lists of names that pull from within ``sqlalchemy.sql``. Their implementations are now broken out among ``sqlalchemy.sql.type_api``, ``sqlalchemy.sql.sqltypes``, ``sqlalchemy.sql.schema`` and ``sqlalchemy.sql.ddl``, the last of which was moved from ``sqlalchemy.engine``. ``sqlalchemy.sql.expression`` is also a namespace now which pulls implementations mostly from ``sqlalchemy.sql.elements``, ``sqlalchemy.sql.selectable``, and ``sqlalchemy.sql.dml``. Most of the "factory" functions used to create SQL expression objects have been moved to classmethods or constructors, which are exposed in ``sqlalchemy.sql.expression`` using a programmatic system. Care has been taken such that all the original import namespaces remain intact and there should be no impact on any existing applications. The rationale here was to break out these very large modules into smaller ones, provide more manageable lists of function names, to greatly reduce "import cycles" and clarify the up-front importing of names, and to remove the need for redundant functions and documentation throughout the expression package.
* - endless isinstance(x, str)s....Mike Bayer2013-04-281-2/+8
|
* - the raw 2to3 runMike Bayer2013-04-271-5/+5
| | | | - went through examples/ and cleaned out excess list() calls
* - Fixed bug in unit of work whereby a joined-inheritanceMike Bayer2013-04-011-5/+2
| | | | | | | | | | | subclass could insert the row for the "sub" table before the parent table, if the two tables had no ForeignKey constraints set up between them. Also in 0.7.11. [ticket:2689] - fix a glitch in the assertsql.CompiledSQL fixture regarding when a multiparam compiledSQL is used within an AllOf - add a new utility function randomize_unitofwork() which does the function of --reversetop
* - add a nose runner that erases out argv, otherwiseMike Bayer2013-03-251-1/+0
| | | | | you get "import test" as what it tries to run with setup.py test
* - add support for pulling in an external requirements fileMike Bayer2013-02-061-3/+16
| | | | - start filling in default versions of remaining requirements that are still only in test/
* Fixed table reflection for Oracle when accessing a synonym that refersMike Bayer2012-12-091-2/+8
| | | | | | | | | | to a DBLINK remote database; while the syntax has been present in the Oracle dialect for some time, up until now it has never been tested. The syntax has been tested against a sample database linking to itself, however there's still some uncertainty as to what should be used for the "owner" when querying the remote database for table information. Currently, the value of "username" from user_db_links is used to match the "owner". [ticket:2619]
* juts a 'expected 2 blank lines' pep8 passDiana Clarke2012-11-191-1/+16
|
* - support "fails_if" requirements as __requires__; so far this just skips, ↵Mike Bayer2012-11-121-1/+6
| | | | | | | | | | doesn't actually run the test - add requirements for date/datetime/time capabilities - remove test/sql/test_types->DateTest and create new tests in suite/test_types - move the StringTest with the "no length create" test to the suite, though this is a weird test
* - [feature] Various API tweaks to the "dialect"Mike Bayer2012-10-081-6/+16
| | | | | | | API to better support highly specialized systems such as the Akiban database, including more hooks to allow an execution context to access type processors.
* - add back __engine_options__Mike Bayer2012-10-041-7/+20
| | | | | - break test_insert tests into explicitly get_lastrowid() vs. implicit_returning tests, fix up requirements to split them out
* - connect immediately on _create_testing_engine to initialize dialect ↵Mike Bayer2012-10-041-0/+1
| | | | capabilities
* - fix the fixture here that wasn't creating consistentlyMike Bayer2012-10-011-12/+19
| | | | | | | - rewrite --dropfirst to be more industrial strength, includes views - fix order_by="foreign_key" to maintain the same ordering as metadata.sorted_tables. Not ideal that this was the other way throughout 0.7 but this is still a little-used method, in contrast to metadata.sorted_tables.
* consolidate config into noseplugin, remove the dupe, load noseplugin using ↵Mike Bayer2012-09-301-9/+192
| | | | imp.load_source(), see if that works
* also get rid of satest.cfgMike Bayer2012-09-291-1/+1
|
* adjustmentsMike Bayer2012-09-291-1/+5
|
* getting everything to pass againMike Bayer2012-09-271-2/+1
|
* - add a runner moduleMike Bayer2012-09-271-1/+1
| | | | - make "default" the default dialect.
* tweaksMike Bayer2012-09-271-5/+5
|
* trying different approaches to test layout. in this one, the testing modulesMike Bayer2012-09-271-0/+199
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.