summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/plugin
Commit message (Collapse)AuthorAgeFilesLines
* - allow a separate template database to be used forMike Bayer2017-08-221-0/+3
| | | | | | | PG CREATE DATABASE. as nobody will connect to it that would solve the contention issue here Change-Id: I00a4d52091876e120faff4a8a5493c53280d96f1
* - repair --dbsMike Bayer2017-08-222-1/+21
| | | | | Change-Id: I69e39d2368f50b126c369ecc35e01799fd013254 (cherry picked from commit 3fc6f32ddc5fbbf439acff42c2fdae9e910154be)
* - sanitize class names for junit reportingMike Bayer2017-08-211-1/+8
| | | | Change-Id: I42821d8324208b708adc17a10b1a2758797cb9db
* - rework oracle de-provisioning to write URLs to the file as well,Mike Bayer2017-08-202-4/+5
| | | | | | supporting custom dburi etc. Change-Id: Ic0ab0b3b4223e40fd335ee3313fda4dfce942100
* Isolate memory tests in forksMike Bayer2017-08-141-0/+8
| | | | | | | | | | | | Swing the biggest hammer, run multiprocessing.Process() for each memusage test individually so that they are fully isolated from the parent process and any side effects of pytest-xdist Also add --nomemory as a shortcut to exclude_tags=memory-intensive and add this to the setup.py test runner as the memory tests should not be running for quick runs Change-Id: I3c16c781e21b33deb939a64e77a6e0e41fb86922
* Restore original test namesMike Bayer2017-08-141-4/+3
| | | | | | | | | | | The change in de1f8f8345ecd6af0ec1177703465e9471cfe862 modified how test classes are named, breaking logic that extracts the class name for the profiling suite. Add a new variable _sa_orig_cls_name if we've modified the name so that the profiling logic doesn't need to guess the original class name. Change-Id: Ica15a97408b9e0749a78c87f62749c15c1627009
* Allow multiple versions of single backendMike Bayer2017-08-041-2/+5
| | | | | | | | | | Improve screen output to illustrate which server version is running for a particular database config, and additionally allow full overriding for the backend-specific targets in tox.ini via environment variables, so that CI can inject multiple server urls for a particular database such as MySQL/MariaDB. Change-Id: Ibf443bb9fb82e4563efd1bb66058fa9989aa2fda
* update for 2017 copyrightMike Bayer2017-01-042-2/+2
| | | | Change-Id: I4e8c2aa8fe817bb2af8707410fa0201f938781de
* Additions to support HAAlchemy pluginMike Bayer2016-09-161-0/+1
| | | | | | | | | | | | | | | | | | | - add a connect=True key to connection record to support pre-loading of _ConnectionRecord objects - ensure _ConnectionRecord.close() leaves the record in a good state for reopening - add _ConnectionRecord.record_info for persistent storage - add "in_use" accessor based on fairy_ref being present or not - allow for the exclusions system and SuiteRequirements to be usable without the full plugin_base setup. - move some Python-env requirements to the importable requirements.py module. - allow starttime to be queried - add additional events for engine plugins - have "dialect" be a first-class parameter to the pool, ensure the engine strategy supplies it up front Change-Id: Ibf549f7a1766e49d335cd6f5e26bacfaef9a8229
* - limit oracle DB reaps to identifiers generated from thisMike Bayer2016-06-022-1/+13
| | | | | | run to prevent race conditions against concurrent runs Change-Id: I065d1cec346ea7af03792c3cc2f30766f73c2bd3
* - ensure engine is restored even if we had a failure in cleanupMike Bayer2016-03-151-3/+5
| | | | for stray connection
* - additional fixes to get oracle + multiprocess to be reliableMike Bayer2016-02-082-0/+11
|
* - happy new yearMike Bayer2016-01-292-2/+2
|
* - use uuid fragments for provision names to enable multiple test suitesMike Bayer2016-01-231-2/+2
| | | | per server
* - db_opts doesn't need to be a global since we no longer have any globalMike Bayer2015-07-171-5/+2
| | | | | option for it. keep it local to production of config so values don't leak in a multi --db situation.
* - move away from explicit raises of SkipTest, instead call aMike Bayer2015-05-013-10/+23
| | | | | | | function patched onto config. nose/pytest backends now fill in their exception class here only when loaded - use more public seeming api to get at py.test Skipped exception
* - Fixed an import that prevented "pypy setup.py test" from workingMike Bayer2015-05-011-0/+1
| | | | | correctly. fixes #3406
* - copyright 2015Mike Bayer2015-03-102-2/+2
|
* - add an exclusion here that helps with the case of 3rd partyMike Bayer2015-01-171-1/+2
| | | | test suite redefining an existing test in test_suite
* - test failures:Mike Bayer2015-01-021-1/+0
| | | | | - test_schema_2 is only on PG and doesn't need a drop all, omit this for now - py3k has exception.args[0], not message
* - repair drop_all_tablesMike Bayer2015-01-021-1/+1
|
* - restate sort_tables in terms of a more fine grainedMike Bayer2015-01-011-11/+3
| | | | | | | | | | | | | sort_tables_and_constraints function. - The DDL generation system of :meth:`.MetaData.create_all` and :meth:`.Metadata.drop_all` has been enhanced to in most cases automatically handle the case of mutually dependent foreign key constraints; the need for the :paramref:`.ForeignKeyConstraint.use_alter` flag is greatly reduced. The system also works for constraints which aren't given a name up front; only in the case of DROP is a name required for at least one of the constraints involved in the cycle. fixes #3282
* - add a new option --force-write-profiles to rewrite profiles even if theyMike Bayer2014-11-251-1/+4
| | | | are passing
* - fix issue where nose Failure object comes into play hereMike Bayer2014-09-151-0/+2
|
* - remove some crufty old testing optionsMike Bayer2014-09-145-252/+81
| | | | | | | | - 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
* - A new style of warning can be emitted which will "filter" up toMike Bayer2014-08-311-3/+1
| | | | | | | | | N occurrences of a parameterized string. This allows parameterized warnings that can refer to their arguments to be delivered a fixed number of times until allowing Python warning filters to squelch them, and prevents memory from growing unbounded within Python's warning registries. fixes #3178
* - max failures 25Mike Bayer2014-08-161-0/+3
| | | | - guard against some potential pytest snarkiness
* - clean up provision and keep sqlite on memory DBs if thats what we start withMike Bayer2014-08-151-10/+7
|
* - modify how class state is tracked here as it seems like thingsMike Bayer2014-08-151-5/+6
| | | | are a little more crazy under xdist mode
* - repair against use hereMike Bayer2014-08-141-2/+3
|
* - public method name is get_enums()Mike Bayer2014-08-131-1/+9
| | | | | | | | | | | | | | - return a list of dicts like other methods do - don't combine 'schema' with 'name', leave them separate - support '*' argument so that we can retrieve cross-schema if needed - remove "conn" argument - use bound parameters for 'schema' in SQL - order by schema, name, label - adapt _load_enums changes to column reflection - changelog - module docs for get_enums() - add drop of enums to --dropfirst
* - repair test finding to not skip the test_suite testsMike Bayer2014-07-302-2/+1
|
* fix test ordering issuesMike Bayer2014-07-271-0/+2
|
* - remove print statementMike Bayer2014-07-271-3/+4
| | | | - ensure non-tests wont run
* - remove debugging assertionsMike Bayer2014-07-272-9/+5
| | | | - keep sqlite as memory even with parallel for now
* - add support for tags, including include/exclude support.Mike Bayer2014-07-273-29/+106
| | | | simplify tox again now that we can exclude tests more easily
* - scale up for mysql, sqliteMike Bayer2014-07-263-36/+172
|
* Merge branch 'master' into xdist_pocMike Bayer2014-07-261-26/+37
|\ | | | | | | | | Conflicts: lib/sqlalchemy/engine/url.py
| * - rework the exclusions system to have much better support for compoundMike Bayer2014-07-261-26/+37
| | | | | | | | rules, better message formatting
* | - use a template database for PG so extensions get created automaticallyMike Bayer2014-07-251-4/+7
| |
* | - proof of concept for parallel testingMike Bayer2014-07-253-0/+90
|/
* - apply pep8 formatting to sqlalchemy/sql, sqlalchemy/util, sqlalchemy/dialects,Brian Jarrett2014-07-203-82/+126
| | | | sqlalchemy/orm, sqlalchemy/event, sqlalchemy/testing
* - break up the <authors> copyright comment as part of a passMike Bayer2014-07-092-2/+4
| | | | to get all flake8 passing
* - support __only_on__ and __backend__ at the same timeMike Bayer2014-07-091-15/+19
|
* 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-273-13/+18
| | | | | - move the logic to determine "test id" into plugin_base - update callcounts
* fixes to get profiling tests working againMike Bayer2014-03-261-1/+7
|
* fixMike Bayer2014-03-241-1/+1
|
* - add some more rules to make sure all tests run if DBs are availableMike Bayer2014-03-241-1/+13
|
* - rename __multiple__ to __backend__, and apply __backend__ to a large ↵Mike Bayer2014-03-242-3/+7
| | | | | | number of tests. - move out logging tests from test_execute to test_logging