Commit Graph

30 Commits

Author SHA1 Message Date
Mike Bayer c0b5a0446b - updated the naming scheme of the base test classes in test/testlib/testing.py;
tests extend from either TestBase or ORMTest, using additional mixins for
special assertion methods as needed
2008-02-11 00:28:39 +00:00
Jason Kirtland 47a8b6d10d - Migrated zoomark to profiling.function_call_count(), tightened up the numbers. Is there variation by platform too? Buildbots will tell... 2008-01-22 22:43:04 +00:00
Jason Kirtland 7e0f72cde4 rein in r3840 find and replace rampage 2008-01-22 21:32:51 +00:00
Jason Kirtland b3cc2f7e0c - 2.3 fixup part three: 100% on postgres, mysql 2008-01-22 21:08:21 +00:00
Jason Kirtland 412c80dd6c - 2.3 fixup, part two: 100% passing for sqlite
- added 2.4-style binops to util.Set on 2.3
  - OrderedSets pickle on 2.3
  - more lib/sqlalchemy set vs Set corrections
  - fixed InstrumentedSet.discard for 2.3
  - set, sorted compatibility for test suite
- added testing.fails_if decorator
2008-01-21 23:19:39 +00:00
Jason Kirtland 17d3c8764e - testbase is gone, replaced by testenv
- Importing testenv has no side effects- explicit functions provide similar behavior to the old immediate behavior of testbase
- testing.db has the configured db
- Fixed up the perf/* scripts
2008-01-12 22:03:42 +00:00
Jason Kirtland 8128a6378a - Removed @testing.supported. Dialects in development or maintained outside
the tree can now run the full suite of tests out of the box.
- Migrated most @supported to @fails_on, @fails_on_everything_but, or (last
  resort) @unsupported.  @fails_on revealed a slew of bogus test skippage,
  which was corrected.
- Added @fails_on_everything_but.  Yes, the first usage *was*
  "fails_on_everything_but('postgres')".  How did you guess!
- Migrated @supported in dialect/* to the new test-class attribute __only_on__.
- Test classes can also have __unsupported_on__ and __excluded_on__.
2007-12-13 09:59:14 +00:00
Mike Bayer 4d7f279d14 fixed unicode-ness for Unicode values 2007-11-28 22:09:57 +00:00
Mike Bayer e83eefafbb bump for py2.4 2007-11-25 04:00:44 +00:00
Mike Bayer cf18eecd70 - named_with_column becomes an attribute
- cleanup within compiler visit_select(), column labeling
- is_select() removed from dialects, replaced with returns_rows_text(), returns_rows_compiled()
- should_autocommit() removed from dialects, replaced with should_autocommit_text() and
should_autocommit_compiled()
- typemap and column_labels collections removed from Compiler, replaced with single "result_map" collection.
- ResultProxy uses more succinct logic in combination with result_map to target columns
2007-11-25 03:28:49 +00:00
Mike Bayer 3f93103a5e - all kinds of cleanup, tiny-to-slightly-significant speed improvements 2007-11-24 00:55:39 +00:00
Mike Bayer 95807fd287 some wide zoomark ranges... 2007-11-18 07:23:00 +00:00
Mike Bayer 31b32896e8 cut down a good deal of Join construction overhead 2007-11-18 06:51:17 +00:00
Ants Aasma 004345d7c9 updated zoomark test_1a_populate callcounts. if the calls keep being removed like this then soon there will be none left. 2007-11-08 00:11:46 +00:00
Mike Bayer 0af3f8f35b - rewritten ClauseAdapter merged from the eager_minus_join branch; this is a much simpler
and "correct" version which will copy all elements exactly once, except for those which were
replaced with target elements.  It also can match a wider variety of target elements including
joins and selects on identity alone.
2007-11-03 22:13:17 +00:00
Mike Bayer 66cd772094 - merged factor_down_bindparams branch.
- removed ClauseParameters object; compiled.params returns a regular dictionary
  now, as well as result.last_inserted_params()/last_updated_params().
- various code trimming, method removals.
2007-11-01 03:58:21 +00:00
Ants Aasma 5a1863d092 - also added proxying of save_or_update to scoped sessions.
- session.update() raises an error when updating an instance that is already in the session with a different identity
- adjusted zoomarks lower limits so I can get a nice clean run
2007-10-31 16:30:06 +00:00
Ants Aasma 6bbc7dd157 change the in_ API to accept a sequence or a selectable [ticket:750] 2007-10-16 22:57:05 +00:00
Jason Kirtland 0f49157bc9 Adjusted zoomark ranges for 2.4 and 2.5. 2007-10-13 22:18:35 +00:00
Jason Kirtland f0c535403f - The no-arg ResultProxy._row_processor() is now the class attribute
`_process_row`.
- Further tiny cleanups in RoxProxy.
2007-10-02 01:40:43 +00:00
Jason Kirtland c1221b7cd3 - The IdentifierPreprarer's _requires_quotes test is now regex based.
Any out-of-tree dialects that provide custom sets of legal_characters
  or illegal_initial_characters will need to move to regexes or override
  _requires_quotes.
2007-09-27 17:23:41 +00:00
Mike Bayer e3b06dc83e zoomark adjustment for the pybot... 2007-09-27 00:28:58 +00:00
Mike Bayer 9f7526df52 - adjust server side logic to work with standalone default execution
- a little bit of inlining of same
2007-09-27 00:17:07 +00:00
Mike Bayer a504b78e6c buildbot reported a lower number for test 1a... 2007-09-04 18:20:48 +00:00
Mike Bayer 5800950add - took out method calls for oid_column
- reduced complexity of parameter handling during execution; __distill_params does all
parameter munging, executioncontext.parameters always holds a list of parameter structures
(lists, tuples, or dicts).
2007-09-04 18:07:16 +00:00
Mike Bayer 9c76fa6cb5 lowered value, fewer calls on pybot ? 2007-09-01 23:10:13 +00:00
Mike Bayer 46cf32fc10 added zoomark profile 2007-09-01 22:48:07 +00:00
Mike Bayer 69f7084c9b - merged inline inserts branch
- all executemany() style calls put all sequences and SQL defaults inline into a single SQL statement
and don't do any pre-execution
- regular Insert and Update objects can have inline=True, forcing all executions to be inlined.
- no last_inserted_ids(), lastrow_has_defaults() available with inline execution
- calculation of pre/post execute pushed into compiler; DefaultExecutionContext greatly simplified
- fixed postgres reflection of primary key columns with no sequence/default generator, sets autoincrement=False
- fixed postgres executemany() behavior regarding sequences present, not present, passivedefaults, etc.
- all tests pass for sqlite, mysql, postgres; oracle tests pass as well as they did previously including all
insert/update/default functionality
2007-09-01 19:49:26 +00:00
Mike Bayer e755e90681 restored WeakValueDict for threadlocal connections + profiler test, addressing
[ticket:754]
2007-08-22 19:14:30 +00:00
Mike Bayer b8e92e6692 added first profile tests per [ticket:753] 2007-08-21 19:15:55 +00:00