summaryrefslogtreecommitdiff
path: root/test/lib/testing.py
Commit message (Collapse)AuthorAgeFilesLines
* trying different approaches to test layout. in this one, the testing modulesMike Bayer2012-09-271-25/+0
| | | | | | | 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.
* - further reorganization of test suite:Mike Bayer2012-09-261-440/+12
| | | | | | | | | | | - bootstrap and lib move to all absolute imports - testing.py is no longer internally referenced. - requirements move to be a pluggable class which can be overridden. - cleanup in the interests of third party testing, test/lib and test/bootstrap may move to be an independent package.
* - rework the test exclusions system to work on a consistent themeMike Bayer2012-09-031-306/+4
|
* -whitespace bonanza, contdMike Bayer2012-07-281-6/+6
|
* - move cte tests into their own test/sql/test_cte.pyMike Bayer2012-06-251-0/+4
| | | | | | | | | | - rework bindtemplate system of "numbered" params by applying the numbers last, as we now need to generate these out of order in some cases - add positional assertion to assert_compile - add new cte_positional collection to track bindparams generated within cte visits; splice this onto the beginning of self.positiontup at cte render time, [ticket:2521]
* need some default dialect in hereMike Bayer2012-06-201-1/+0
|
* - add a context manager availble via Engine.begin()Mike Bayer2012-02-121-0/+20
| | | | | | - add a test suite for all the Engine/Connection/TLEngine transaction/begin helpers/context managers - update docs
* mark this test as unsupported before 2.6, there's some unicodeMike Bayer2012-01-281-1/+1
| | | | issue I'm not exactly sure of what nature it is
* - [feature] Dialect-specific compilers now raiseMike Bayer2012-01-281-2/+2
| | | | | | | | CompileException for all type/statement compilation issues, instead of InvalidRequestError or ArgumentError. The DDL for CREATE TABLE will re-raise CompileExceptions to include table/column information for the problematic column. [ticket:2361]
* - [bug] Fixed issue where modified session stateMike Bayer2012-01-271-1/+5
| | | | | | | | | | | | | | established after a failed flush would be committed as part of the subsequent transaction that begins automatically after manual call to rollback(). The state of the session is checked within rollback(), and if new state is present, a warning is emitted and restore_snapshot() is called a second time, discarding those changes. [ticket:2389] - repaired testing.assert_warnings to also verify that any warnings were emitted
* - rework the test suite to make use of SkipTest for tests skipped, ↵Mike Bayer2012-01-221-16/+4
| | | | | | | unsupported, etc. so that we can get an accurate picture what's really running/not, what's installed on jenkins, etc. Tested in cpython 2.7 so far, we'll see what jenkins says about other platforms
* - [bug] Fixed inappropriate usage of util.py3kMike Bayer2011-12-151-1/+1
| | | | | | | flag and renamed it to util.py3k_warning, since this flag is intended to detect the -3 flag series of import restrictions only. [ticket:2348]
* - Unit tests pass 100% on MySQL installedMike Bayer2011-06-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | on windows, after aggressive exclusion of a wide variety of tests. Not clear to what degree the failures are related to version 5.5 vs. the usage of windows, in particular the ON UPDATE CASCADE immediately crashes the server. The features being tested here are all edge cases not likely to be used in typical MySQL environments. - Removed the "adjust casing" step that would fail when reflecting a table on MySQL on windows with a mixed case name. After some experimenting with a windows MySQL server, it's been determined that this step wasn't really helping the situation much; MySQL does not return FK names with proper casing on non-windows platforms either, and removing the step at least allows the reflection to act more like it does on other OSes. A warning here has been considered but its difficult to determine under what conditions such a warning can be raised, so punted on that for now - added some docs instead. [ticket:2181] - supports_sane_rowcount will be set to False if using MySQLdb and the DBAPI doesn't provide the constants.CLIENT module.
* - hardcore force every connection into a strong-referenced set, rollback on ↵Mike Bayer2011-04-251-1/+1
| | | | | | | | | every test, close on every context. this uses pool events but bypasses the pool's fairy/record/dispose services. pypy still seems to expose some holes in that at least as far as what some (or maybe just one, cant find it yet) of the tests does. haven't tested this too deeply, just on sqlite + postgres, cypthon 2.7 + pypy. will see what the buildbot says
* try a between here since 'in' looks for exact matches, doesn't workMike Bayer2011-04-151-1/+0
| | | | with extra thingies in the version
* - remove test.sql._base, test.engine._base, test.orm._base, move those ↵Mike Bayer2011-03-271-24/+0
| | | | | | | classes to a new test.lib.fixtures module - move testing.TestBase to test.lib.fixtures - massive search and replace
* - convert @provide_metadata to use self accessMike Bayer2011-03-261-17/+7
| | | | | - having occasional issues with BasicEntity grabbing, if it persists may have to pass an explicit base class into setup_classes()/setup_mappers()
* - remove @testing.resolve_artifact_names, replace with direct attributeMike Bayer2011-03-261-28/+0
| | | | | | | access to the cls/self.tables/classes registries - express orm/_base.py ORMTest in terms of engine/_base.py TablesTest, factor out common steps into TablesTest, remove AltEngineTest as a separate class. will further consolidate these base classes
* make it more explicit in tests which dialect we want to use for thingsMike Bayer2011-02-111-3/+8
|
* - The compiler extension now supports overriding the defaultMike Bayer2011-02-091-1/+3
| | | | | | | compilation of expression._BindParamClause including that the auto-generated binds within the VALUES/SET clause of an insert()/update() statement will also use the new compilation rules. [ticket:2042]
* rename 'frozendict' to 'immutabledict', since 'frozen' implies hashabilityMike Bayer2011-01-201-2/+2
| | | | | like frozenset which isn't really the purpose of 'immutabledict' (could be someday, in which case, we'd change the name back :) )
* - whitespace removal bonanzaMike Bayer2011-01-021-35/+35
|
* - move topological, queue into utilMike Bayer2010-12-051-218/+194
| | | | | - move function_named into test.lib.util - use @decorator for all decorators in test/
* - modernize multiple warning assertions for PG reflect index testMike Bayer2010-11-301-0/+12
|
* - use class name by itself in flush warnings to prevent overflow of warnings ↵Mike Bayer2010-11-291-5/+15
| | | | | | | registry - test suite swaps out warnings.warn with warnings.warn_explicit, to solve warnings registry issue - explicitly disallow functions from inside test.bootstrap, test.lib being interpreted as tests
* - move sqlalchemy.test to test.libMike Bayer2010-11-151-0/+797