summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing
Commit message (Collapse)AuthorAgeFilesLines
* Added missing text_type requirement to TextTestpr/82Stefan Reich2014-03-261-0/+2
|
* - isolate this failure as only on 0.8, only in py3.3, just comment it out,Mike Bayer2014-02-191-1/+9
| | | | not really worth tracking down
* - add improved support here for string parsing of predicates, backportMike Bayer2014-02-191-1/+8
| | | | from 0.9
* Fix unique constraints reflection in SQLitepr/72Roman Podoliaka2014-02-141-0/+4
| | | | | | | | | Reflection of unique constraints didn't work properly, if reserved identifiers had been used as column names. In this case column names would be put in double quotes (e.g. the name of column asc would be returned as "asc"). This issue is only present in 0.8.4 and not in 0.9.x.
* - repair the fixture/test here to make sure state isn't left over causing ↵Mike Bayer2014-01-281-1/+1
| | | | other tests to fail
* - 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
|
* fix 2.5-ismMike Bayer2013-12-271-0/+1
|
* - add an exclusion for "floats to four decimals", backported from 0.9 and ↵Mike Bayer2013-12-272-0/+10
| | | | | | applies to firebird
* - 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
|
* fix for 2.5Mike Bayer2013-12-041-1/+1
|
* - move tests for unique constraints to dialect suite, includingMike Bayer2013-12-032-1/+49
| | | | requirements etc., just like 0.9
* py3k fix for non-ascii SQL stringsMike Bayer2013-11-211-2/+3
|
* - Fixed bug which prevented the ``serializer`` extension from workingMike Bayer2013-11-211-4/+5
| | | | | | | | | | correctly with table or column names that contain non-ASCII characters. [ticket:2869] Conflicts: lib/sqlalchemy/ext/serializer.py lib/sqlalchemy/sql/selectable.py lib/sqlalchemy/testing/assertions.py
* - use inline=True for the insert..select here so it works on oracleMike Bayer2013-07-121-2/+2
|
* - Added new method to the :func:`.insert` constructMike Bayer2013-07-052-0/+34
| | | | | | | | | | :meth:`.Insert.from_select`. Given a list of columns and a selectable, renders ``INSERT INTO (table) (columns) SELECT ..``. While this feature is highlighted as part of 0.9 it is also backported to 0.8.3. [ticket:722] - The :func:`.update`, :func:`.insert`, and :func:`.delete` constructs will now interpret ORM entities as FROM clauses to be operated upon, in the same way that select() already does.
* - replace most explicitly-named test objects called "Mock..." withMike Bayer2013-06-302-0/+17
| | | | | | | | | | | | actual mock objects from the mock library. I'd like to use mock for new tests so we might as well use it in obvious places. - use unittest.mock in py3.3 - changelog - add a note to README.unittests - add tests_require in setup.py - have tests import from sqlalchemy.testing.mock - apply usage of mock to one of the event tests. we can be using this approach all over the place.
* improve the close handling here so that we don't double-close a connection;Mike Bayer2013-06-281-5/+8
| | | | we log this now so it apparently happens a bunch
* Merge pull request #13 from malor/fix_indexes_reflectionmike bayer2013-06-261-1/+6
| | | | Fix indexes reflection in PostgreSQL
* - Fixed bug in unit of work whereby a joined-inheritanceMike Bayer2013-04-012-5/+4
| | | | | | | | | | | 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-252-1/+10
| | | | | you get "import test" as what it tries to run with setup.py test
* - limit some of these on views, indexes, pk constraints being availableMike Bayer2013-03-241-2/+8
|
* - add an event to testing so that other dialects can intercept ↵Mike Bayer2013-03-242-11/+20
| | | | | | "test_needs_autoincrement" - get the assumption of "1" for "first sequence item" to be dialect configured
* - remove all compat items that are pre-2.5 (hooray)Mike Bayer2013-03-092-4/+3
| | | | | | - other cleanup - don't need compat.decimal, that approach never panned out. hopefully outside libs aren't pulling it in, they shouldn't be
* mymysql dialectHajime Nakagami2013-03-011-1/+1
|
* - fix exclusion hereMike Bayer2013-02-062-8/+5
| | | | - mysql doesn't reset table counter here so test differently
* port numeric tests to dialect suiteMike Bayer2013-02-062-1/+181
|
* - adding in requirementsMike Bayer2013-02-064-3/+110
| | | | - get test_naturalpks to be more generalized
* - add support for pulling in an external requirements fileMike Bayer2013-02-062-6/+68
| | | | - start filling in default versions of remaining requirements that are still only in test/
* - cleanup HasSequence and move it to test_sequencesMike Bayer2013-02-062-42/+58
|
* - add an explicit test for sequences "optional"Mike Bayer2013-02-062-1/+27
|
* - add an "empty_inserts" requirement target plus a suite testMike Bayer2013-02-065-0/+153
| | | | - add suite tests for basic explicit Sequence support, result-row column access (tests that name_normalize is set correctly among many other things)
* - use SQL constructs here for databases that need to escape names like "data"Mike Bayer2013-01-271-5/+4
|
* - preparing for #695, modernize constraint/index testsMike Bayer2013-01-161-4/+9
|
* 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]
* internally at least refer to multirow as "multivalues", to distinguish betweenMike Bayer2012-12-081-2/+2
| | | | | an INSERT that's used in executemany() as opposed to one which has a VALUES clause with multiple entries.
* - multivalued inserts, [ticket:2623]Mike Bayer2012-12-081-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - update "not supported" messages for empty inserts, mutlivalue inserts - rework the ValuesBase approach for multiple value sets so that stmt.parameters does store a list for multiple values; the _has_multiple_parameters flag now indicates which of the two modes the statement is within. it now raises exceptions if a subsequent call to values() attempts to call a ValuesBase with one mode in the style of the other mode; that is, you can't switch a single- or multi- valued ValuesBase to the other mode, and also if a multiple value is passed simultaneously with a kwargs set. Added tests for these error conditions - Calling values() multiple times in multivalue mode now extends the parameter list to include the new parameter sets. - add error/test if multiple *args were passed to ValuesBase.values() - rework the compiler approach for multivalue inserts, back to where _get_colparams() returns the same list of (column, value) as before, thereby maintaining the identical number of append() and other calls when multivalue is not enabled. In the case of multivalue, it makes a last-minute switch to return a list of lists instead of the single list. As it constructs the additional lists, the inline defaults and other calculated default parameters of the first parameter set are copied into the newly generated lists so that these features continue to function for a multivalue insert. Multivalue inserts now add no additional function calls to the compilation for regular insert constructs. - parameter lists for multivalue inserts now includes an integer index for all parameter sets. - add detailed documentation for ValuesBase.values(), including careful wording to describe the difference between multiple values and an executemany() call. - add a test for multivalue insert + returning - it works ! - remove the very old/never used "postgresql_returning"/"firebird_returning" flags.
* juts a 'expected 2 blank lines' pep8 passDiana Clarke2012-11-191-1/+16
|
* just a pep8 pass of lib/sqlalchemy/testing/Diana Clarke2012-11-198-17/+96
|
* just a pep8 pass of lib/sqlalchemy/testing/Diana Clarke2012-11-1912-47/+93
|
* - hstore adjustmentsMike Bayer2012-11-171-4/+4
|
* fix some oracle-related tests, but still need to fix unhashable_types testMike Bayer2012-11-121-2/+2
|
* - support "fails_if" requirements as __requires__; so far this just skips, ↵Mike Bayer2012-11-123-3/+166
| | | | | | | | | | 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
* - rework the sphinx customizations into distinct modulesMike Bayer2012-10-192-4/+18
| | | | | | | - build a new Sphinx extension that allows dialect info to be entered as directives which is then rendered consistently throughout all dialect/dbapi sections - break out the "empty_strings" requirement for oracle test
* - break out unicode tests to a varchar + a text test, add a requiresMike Bayer2012-10-152-18/+28
|
* fix for pypy/jython gc_collectMike Bayer2012-10-151-2/+2
|
* - add some UPDATE..FROM tests and also some new reqsMike Bayer2012-10-121-0/+21
|