[Subversion] / PEAK / src / peak / util / tests / __init__.py  

Log of /PEAK/src/peak/util/tests/__init__.py

Parent Directory

No default branch
Bookmark a link to HEAD: (view) (download) (as text)


Revision 1791 - (view) (download) (as text) - [select for diffs]
Modified Sun Jul 25 04:24:12 2004 UTC (19 years, 8 months ago) by pje
File length: 525 byte(s)
Diff to previous 1761
Removed 'peak.running.timers' and 'peak.util.dispatch'.  Neither was in
active use, and both are being replaced by the new generic functions
package in PyProtocols.

Revision 1761 - (view) (download) (as text) - [select for diffs]
Modified Wed Jun 23 20:54:46 2004 UTC (19 years, 9 months ago) by pje
File length: 552 byte(s)
Diff to previous 1683
Added 'peak.util.expr': tools for symbolic manipulation of Python
expressions.  This first drop provides a mechanism for creating proxy
types that invoke a builder function when expressions are executed, thus
translating things like 'something.foo[23]' into something like::

    build("[]", build(".",something,"foo"), 23 )

Assuming, of course, that 'something' is a proxy instance.  Expression
proxies can wrap the node object types of your choice, so that you can
reuse this code for various types of query or other frameworks, without
having to code all the '__foo__' methods to do this sort of thing by hand.

Revision 1683 - (view) (download) (as text) - [select for diffs]
Modified Sat Feb 7 20:02:19 2004 UTC (20 years, 1 month ago) by pje
File length: 524 byte(s)
Diff to previous 1588
Added 'peak.util.mockets', offering imitation socket services like
'socket()' and 'select()', allowing socket-based services to be tested
without using real sockets.  So far only emulates TCP streams, and no other
protocols, with certain socket methods omitted.  Needs to be used to test
'peak.events.io_events.Selector', and as a basis for testing/implementing
nonblocking socket objects for 'peak.net'.

Revision 1588 - (view) (download) (as text) - [select for diffs]
Modified Tue Jan 13 23:05:23 2004 UTC (20 years, 2 months ago) by pje
File length: 493 byte(s)
Diff to previous 1449
Added tests for peak.util.signature, and added support for 'advice' classes
to give call signature data for advised methods.  Also, removed outdated
uses of 'peak.util.advice' where 'protocols.advice' is the actual home of
the function.

Revision 1449 - (view) (download) (as text) - [select for diffs]
Modified Fri Nov 14 22:54:16 2003 UTC (20 years, 4 months ago) by pje
File length: 460 byte(s)
Diff to previous 1136
Added 'peak.util.mockdb', a "mock object" implementation of a DBAPI 2.0
driver module.  'mockdb' connections can be told to 'expect()' queries
and 'provide()' data to their callers, and will raise AssertionErrors when
they are used in a way that doesn't conform to your supplied expectations.
This is intended to be used for unit testing components that depend on
a database connection: you can verify that they send the right SQL, and
you can provide them with dummy data to use.  There is also a 'mockdb:' URL
and peak.storage driver, so you can easily use a mock DB connection in
place of a real one within a PEAK application, for testing purposes.  Note,
however, that 'peak.util.mockdb' is a DBAPI 2.0 driver in itself, and thus
can also be used to test DBAPI usage outside of PEAK.

Revision 1136 - (view) (download) (as text) - [select for diffs]
Modified Sun May 25 16:36:37 2003 UTC (20 years, 10 months ago) by pje
File length: 430 byte(s)
Diff to previous 1023
Moved 'peak.util.advice' tests to 'protocols.tests'.

Revision 1023 - (view) (download) (as text) - [select for diffs]
Modified Sat Apr 26 12:55:30 2003 UTC (20 years, 11 months ago) by pje
File length: 455 byte(s)
Diff to previous 977
Added tests for class advice, both generating it, and handling it with
module inheritance.  Also, fixed an issue with module inheritance and
Interface definitions, where Interface complains about "concrete attribute
__name__" when the module simulator tries to tell the Interface class what
its name is.  Now the simulator only tries to tell nested classes what
their names are, which conveniently bypasses Interfaces.

Revision 977 - (view) (download) (as text) - [select for diffs]
Modified Sat Apr 12 19:51:51 2003 UTC (20 years, 11 months ago) by pje
File length: 430 byte(s)
Diff to previous 593
Added basic multimethod/generic function/business rules dispatch library.

Revision 593 - (view) (download) (as text) - [select for diffs]
Modified Sun Nov 3 19:47:29 2002 UTC (21 years, 4 months ago) by pje
File length: 403 byte(s)
Diff to previous 590
Re-org/refactoring of many items from the TODO list for 0.5, including:

* moved peak.binding.imports -> peak.util.imports, added importSuite()

* Decided not to do binding.Acquire, it should just be a documented idiom

* Moved LDAP and lockfile URLs to peak.storage.LDAP and
  peak.running.lockfiles, respectively

* Moved factories.getObjectInstance -> spi, updated peak.ini to load
  naming.spi as the provider.

* Consolidated naming.references into naming.names

* Made ParsedURLs compile their pattern strings, and automatically make
  their 'fromX()' methods classmethods (and the same is true for other
  'struct' types.

* Refactored cursors and connections out into distinct SQLCursor/LDAPCursor
  types, based on a common AbstractCursor.

* Added TooManyResults/TooFewResults errors to peak.exceptions

Revision 590 - (view) (download) (as text) - [select for diffs]
Modified Sat Nov 2 00:48:37 2002 UTC (21 years, 5 months ago) by pje
File length: 490 byte(s)
Diff to previous 464
Added more docs and a test to the FileParsing framework.  Refactored
AbstractConfigParser to make it easier to define how differently-processed
configuration sections will be handled.  Misc. TODO additions.

Revision 464 - (view) (download) (as text) - [select for diffs]
Modified Sat Jul 13 18:44:24 2002 UTC (21 years, 8 months ago) by pje
File length: 460 byte(s)
Diff to previous 463
Added test suite for uuid module.

Revision 463 - (view) (download) (as text) - [select for diffs]
Modified Sat Jul 13 18:18:16 2002 UTC (21 years, 8 months ago) by pje
File length: 436 byte(s)
Diff to previous 429
Added test suite for EigenData module, and fixed some minor issues with it
and binding.components.

Revision 429 - (view) (download) (as text) - [select for diffs]
Modified Wed Jun 19 01:07:11 2002 UTC (21 years, 9 months ago) by pje
File length: 409 byte(s)
Diff to previous 404
Reworked for standardized 'api' modules for package exports.  Also renamed
interpretSpec and interpretSequence to 'importObject' and 'importSequence'
respectively, as they seem to be a bit clearer names.  All the tests still
pass, but be sure to delete your build/ directory and remove the existing
'peak' package from your Python site-packages directory if you have one.

Revision 404 - (view) (download) (as text) - [select for diffs]
Modified Thu Jun 13 00:15:00 2002 UTC (21 years, 9 months ago) by pje
File length: 406 byte(s)
Diff to previous 332
First pass of random conversions from TW -> peak

Revision 332 - (view) (download) (as text) - [select for diffs]
Added Sat Feb 16 01:32:06 2002 UTC (22 years, 1 month ago) by pje
File length: 409 byte(s)
Pre-release documentation and cleanup sweep, part 3.  Rearranged all the
test stuff to meet Zope.org's test packaging conventions.  Added module
docstrings to the Database package, and shuffled a few things around there
to break up the code better.  Looks like the last package left for this
treatment is Utils...

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

  Diffs between and
  Type of Diff should be a

Sort log by:

cvs-admin@eby-sarna.com

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help