summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing
Commit message (Collapse)AuthorAgeFilesLines
* hey we can use unittest.SkipTestMike Bayer2014-03-033-18/+8
|
* figure out module location a bit betterMike Bayer2014-03-031-5/+2
|
* - transfer to non-unittest usage. a little more tricky.Mike Bayer2014-03-033-31/+43
|
* cleanupMike Bayer2014-03-031-7/+1
|
* framework agnostic coverage flagMike Bayer2014-03-033-0/+8
|
* - go through a more complex process here to work around a dict reordering ↵Mike Bayer2014-03-033-5/+38
| | | | issue in pytest
* mark all suite tests as __multiple__Mike Bayer2014-03-037-0/+27
|
* - fix failure casesMike Bayer2014-03-033-42/+60
| | | | - get dropfirst to work around missing schemas
* test branchingMike Bayer2014-03-033-39/+38
|
* we dont need to trick the importer! wowMike Bayer2014-03-021-7/+1
|
* updatesMike Bayer2014-03-021-0/+1
|
* that seems to workMike Bayer2014-03-021-3/+3
|
* - working through this..Mike Bayer2014-03-024-12/+93
|
* - break out all the test extensions from being nose-specific and beginMike Bayer2014-03-024-441/+444
| | | | getting them all compatible with py.test as well
* save some various scratch work for trying to make __multiple__ workMike Bayer2014-03-022-3/+87
|
* - remove the "utf8_engine" concept; current MySQL + drivers don't haveMike Bayer2014-03-023-26/+17
| | | | | an issue with utf8, and this should be part of the testing URL in any case. if we observe failures on some drivers/etc. this can become a "requires"
* - cleanup, solidify ConfigMike Bayer2014-03-025-45/+79
|
* - get everything working again test-wise...Mike Bayer2014-03-022-4/+8
|
* - remove lots of old and unused nose optionsMike Bayer2014-03-016-197/+195
| | | | | | | | | | - alter the plugin/requirements system to support multiple --db/--dburi options. The first option serves as the "default" database, and the subsequent ones serve as "available" databases. the requirement rules at the *class level only* now search among the "available" databases in order to run per-database test suites at once. rationale is to support using the test plugin system under Alembic as well, which already takes advantage of multiple database tests.
* - add new tests for individual type reflectionMike Bayer2014-03-011-0/+46
|
* use view_column requirement hereMike Bayer2014-02-281-3/+3
|
* - dont create a self-ref FK if test suite marked as not supporting self refMike Bayer2014-02-282-13/+27
| | | | | - break out reflection of views to support view column reflection separately from view definition
* - rewrite SQLite reflection tests into one consistent fixture, which testsMike Bayer2014-02-161-3/+6
| | | | both _resolve_type_affinity() directly as well as round trip tests fully.
* - Fixed bug where :class:`.AbstractConcreteBase` would fail to beMike Bayer2014-02-111-2/+6
| | | | | | | | | | | | | | | | | | | | | fully usable within declarative relationship configuration, as its string classname would not be available in the registry of classnames at mapper configuration time. The class now explicitly adds itself to the class regsitry, and additionally both :class:`.AbstractConcreteBase` as well as :class:`.ConcreteBase` set themselves up *before* mappers are configured within the :func:`.configure_mappers` setup, using the new :meth:`.MapperEvents.before_configured` event. [ticket:2950] - Added new :meth:`.MapperEvents.before_configured` event which allows an event at the start of :func:`.configure_mappers`, as well as ``__declare_first__()`` hook within declarative to complement ``__declare_last__()``. - modified how after_configured is invoked; we just make a dispatch() not actually connected to any mapper. this makes it easier to also invoke before_configured correctly. - improved the ComparableEntity fixture to handle collections that are sets.
* - Added a new feature which allows automated naming conventions to beMike Bayer2014-02-011-0/+18
| | | | | | | | | | | | | | | | applied to :class:`.Constraint` and :class:`.Index` objects. Based on a recipe in the wiki, the new feature uses schema-events to set up names as various schema objects are associated with each other. The events then expose a configuration system through a new argument :paramref:`.MetaData.naming_convention`. This system allows production of both simple and custom naming schemes for constraints and indexes on a per-:class:`.MetaData` basis. [ticket:2923] commit 7e65e52c086652de3dd3303c723f98f09af54db8 Author: Mike Bayer <mike_mp@zzzcomputing.com> Date: Sat Feb 1 15:09:04 2014 -0500 - first pass at new naming approach
* add a skip for oracle on thisMike Bayer2014-02-011-0/+24
|
* - repair the fixture/test here to make sure state isn't left over causing ↵Mike Bayer2014-01-271-1/+1
| | | | other tests to fail
* - repair signature for base get_unique_constraints() methodMike Bayer2014-01-201-0/+1
| | | | - test_autoincrement_col still needs reflection overall
* - _cursor_execute() will close the cursor on error; oracle doesn't allow ↵Mike Bayer2014-01-131-2/+2
| | | | | | double close - ensure no iterator changed size issues in testing.engines
* - continue with [ticket:2907] and further clean up how we set upMike Bayer2014-01-131-1/+5
| | | | | | | | | | | | | | _reset_agent, so that it's local to the various begin_impl(), rollback_impl(), etc. this allows setting/resetting of the flag to be symmetric. - don't set _reset_agent if it's not None, don't unset it if it isn't our own transaction. - make sure we clean it out in close(). - basically, we're dealing here with pools using "threadlocal" that have a counter, other various mismatches that the tests bring up - test for recover() now has to invalidate() the previous connection, because closing it actually rolls it back (e.g. this test was relying on the broken behavior).
* - fix some function mismatch in profilingMike Bayer2014-01-091-6/+3
|
* - happy new yearMike Bayer2014-01-0517-17/+17
|
* - support addition of fails_if()/only_on(), just wraps the decoratorsMike Bayer2014-01-021-0/+5
| | | | - update a few exclusions to support current pymssql. passes all of test_suite and dialect/mssql
* - apply a similar fix for floats to mssql+pyodbc as we did to firebirdMike Bayer2013-12-282-4/+30
| | | | | - wrangle through osx+pyodbc+freetds to get at least test_suite to pass again with mssql+pyodbc. invovled adding some silly requirements
* - fix the insert from select test to use a non-autoinc tableMike Bayer2013-12-281-4/+8
|
* - actually check the list of views!Mike Bayer2013-12-271-0/+1
|
* - add a test which creates tables and views at the same time, then tests ↵Mike Bayer2013-12-271-0/+6
| | | | | | that the lists of each can be reflected independently. Testing [ticket:2898] at the moment.
* - repair some suite tests for firebirdMike Bayer2013-12-272-1/+29
|
* - enhance the exclusions system to support database versions within the ↵Mike Bayer2013-12-172-7/+17
| | | | __only_on__ attribute
* - add support for specifying tables or entities for "of"Mike Bayer2013-11-281-2/+2
| | | | | - implement Query with_for_update() - rework docs and tests
* - The precision used when coercing a returned floating point value toMike Bayer2013-11-222-0/+18
| | | | | | | | | | Python ``Decimal`` via string is now configurable. The flag ``decimal_return_scale`` is now supported by all :class:`.Numeric` and :class:`.Float` types, which will ensure this many digits are taken from the native floating point value when it is converted to string. If not present, the type will make use of the value of ``.scale``, if the type supports this setting and it is non-None. Otherwise the original default length of 10 is used. [ticket:2867]
* adjustment to work on py3k as wellMike Bayer2013-11-211-1/+3
|
* - Fixed bug which prevented the ``serializer`` extension from workingMike Bayer2013-11-211-1/+1
| | | | | correctly with table or column names that contain non-ASCII characters. [ticket:2869]
* - add copyright to source files missing itMike Bayer2013-10-2617-1/+98
|
* - use a different approach here since oracle isn't doing it either, just ↵Mike Bayer2013-10-211-3/+6
| | | | round it
* - oursql returns a pure FP here which isn't exactMike Bayer2013-10-211-1/+2
|
* - The typing system now handles the task of rendering "literal bind" values,Mike Bayer2013-10-203-8/+113
| | | | | | | | | | | | | | | e.g. values that are normally bound parameters but due to context must be rendered as strings, typically within DDL constructs such as CHECK constraints and indexes (note that "literal bind" values become used by DDL as of :ticket:`2742`). A new method :meth:`.TypeEngine.literal_processor` serves as the base, and :meth:`.TypeDecorator.process_literal_param` is added to allow wrapping of a native literal rendering method. [ticket:2838] - enhance _get_colparams so that we can send flags like literal_binds into INSERT statements - add support in PG for inspecting standard_conforming_strings - add a new series of roundtrip tests based on INSERT of literal plus SELECT for basic literal rendering in dialect suite
* The MySQL :class:`.mysql.SET` type now features the same auto-quotingMike Bayer2013-10-142-22/+28
| | | | | | | behavior as that of :class:`.mysql.ENUM`. Quotes are not required when setting up the value, but quotes that are present will be auto-detected along with a warning. This also helps with Alembic where the SET type doesn't render with quotes. [ticket:2817]
* - fix bug here in profiling.pyMike Bayer2013-08-281-11/+11
| | | | - callcount
* - rework the profile thing to just rewrite all failing numbers when ↵Mike Bayer2013-08-281-6/+18
| | | | | | --write-profiles is set - some sqlite callcounts