summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/suite
Commit message (Collapse)AuthorAgeFilesLines
* - assorted fixes raised by pypy 2.1beta2, but all of which are goodMike Bayer2013-08-011-2/+3
| | | | | | | | | | | | | | | ideas in general: - pypy2.1 w/ sqlite3 is the first DBAPI we're seeing returning unicode in cursor.description without being py3k. add a new on-connect check for this, if we get back a u"", just don't do description decoding, should be OK for now. - the set tests in test_collection were assuming the two sets would be ordered the same when it tested pop(), can't really assume that. - test_serializer gets worse and worse, pickle is just not really viable here, ding out pypy - pypy2.1b2 seems to allow cursor.lastrowid to work (or we changed something?) - pool._threadconns.current() is a weakref, it can be None - another one of those logging.handlers imports
* - 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-051-0/+28
| | | | | | | | | | :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. Also in 0.8.3.
* add a float exclusion to help oursql build 100%Mike Bayer2013-07-021-0/+1
|
* Fix indexes reflection in PostgreSQLpr/13Roman Podolyaka2013-06-261-1/+6
| | | | | | Reflection of indexes must preserve the order of columns. Fixes issue 2767.
* Merge pull request #11 from malor/fix_uc_reflectionmike bayer2013-06-231-3/+8
|\ | | | | Fix unique constraints reflection in SQLite and PostgreSQL
| * Fix unique constraints reflection in PostgreSQLpr/11Roman Podolyaka2013-06-231-2/+2
| | | | | | | | Reflection of unique constraints must preserve the order of columns.
| * Fix unique constraints reflection in SQLiteRoman Podolyaka2013-06-231-0/+4
| | | | | | | | | | | | | | If SQLite keywords are used as column names, they are quoted. The code parsing the information about table unique constraints should be modified so that it properly removes double-quotes from column names.
| * Improve _test_get_unique_constraints()Roman Podolyaka2013-06-231-1/+2
| | | | | | | | | | | | Call eq_() in a loop instead of comparing two lists directly. This makes it much easier to find out which element is not equal to the reference value.
* | Fix unicode literals on Python 3.1 and 3.2pr/10Roman Podolyaka2013-06-231-1/+2
|/ | | | | A few tests use u'' unicode literals which are not supported in Python versions 3.1 and 3.2.
* - get_unique_constraints() pull requestMike Bayer2013-06-091-1/+44
| | | | | | - version (0.9 for now) - changelog - move the test into the test suite so that all dialects can take advantage of it
* Merge branch 'master' into ticket_1068Mike Bayer2013-06-033-13/+14
|\
| * fix the unicode test suiteMike Bayer2013-05-261-7/+8
| |
| * - the raw 2to3 runMike Bayer2013-04-273-12/+12
| | | | | | | | - went through examples/ and cleaned out excess list() calls
* | still not locating more nested expressions, may need to match on nameMike Bayer2013-05-272-0/+84
|/
* - 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-241-2/+2
| | | | | | "test_needs_autoincrement" - get the assumption of "1" for "first sequence item" to be dialect configured
* - fix exclusion hereMike Bayer2013-02-061-7/+3
| | | | - mysql doesn't reset table counter here so test differently
* port numeric tests to dialect suiteMike Bayer2013-02-061-1/+143
|
* - adding in requirementsMike Bayer2013-02-062-2/+65
| | | | - get test_naturalpks to be more generalized
* - cleanup HasSequence and move it to test_sequencesMike Bayer2013-02-062-42/+58
|
* - add an explicit test for sequences "optional"Mike Bayer2013-02-061-0/+16
|
* - add an "empty_inserts" requirement target plus a suite testMike Bayer2013-02-064-0/+143
| | | | - 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
|
* just a pep8 pass of lib/sqlalchemy/testing/Diana Clarke2012-11-195-16/+19
|
* 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-121-2/+110
| | | | | | | | | | 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-191-2/+9
| | | | | | | - 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-151-18/+21
|
* - create new sqlalchemy.testing.suite.test_types, starting with Unicode ↵Mike Bayer2012-10-102-0/+95
| | | | | | | round trip tests. - clean out existing test_types:UnicodeTest to be strictly individual unit tests against Unicode(), String(), etc. with no database access.
* - add back __engine_options__Mike Bayer2012-10-041-8/+38
| | | | | - break test_insert tests into explicitly get_lastrowid() vs. implicit_returning tests, fix up requirements to split them out
* - test updatesMike Bayer2012-10-042-21/+54
|
* - requirementsMike Bayer2012-10-031-2/+4
|
* - fix the fixture here that wasn't creating consistentlyMike Bayer2012-10-011-2/+3
| | | | | | | - 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.
* allow variability hereMike Bayer2012-09-301-0/+7
|
* mssql: - [bug] Fixed bug where reflection of primary key constraintMike Bayer2012-09-302-2/+2
| | | | | | | would double up columns if the same constraint/table existed in multiple schemas. - force returns_rows to False for inserts where we know rows shouldnt be returned; allows post_exec() to use the cursor without issue
* 2.5 supportMike Bayer2012-09-303-4/+9
|
* mergeMike Bayer2012-09-291-2/+0
|
* - rework component reflection test so that usual framework hooks can be usedMike Bayer2012-09-291-59/+49
| | | | to redefine tables, etc.
* devMike Bayer2012-09-291-153/+149
|
* - more tests, move some tests out of test_reflection, test_queryMike Bayer2012-09-277-67/+605
|
* tweaksMike Bayer2012-09-271-0/+6
|
* trying different approaches to test layout. in this one, the testing modulesMike Bayer2012-09-275-0/+108
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.