summaryrefslogtreecommitdiff
path: root/NEWS
Commit message (Collapse)AuthorAgeFilesLines
* Added assertRaisesRegexp() to MockerTestCase. It works similarly toGustavo Niemeyer2010-09-181-1/+5
| | | | | the version in Python 2.7 and 3.2, except it will also return the error found. It also works as a context manager for with: statements.
* - Implemented support for assertRaises() as a context manager, as inGustavo Niemeyer2010-09-181-0/+11
| | | | | | Python 2.7 and 3.2. - Implemented assertIsInstance() and assertIsNotInstance() as well. - Updated NEWS file.
* mocker.call() now supports a with_object argument. If True, the calledGustavo Niemeyer2010-07-291-0/+8
| | | | | function will receive the patched or proxied object so that its state may be used or verified in checks.
* Fixed duplicated line in NEWS file.1.0Gustavo Niemeyer2010-06-201-2/+0
|
* Setting version and date in NEWS file.Gustavo Niemeyer2010-06-201-1/+1
|
* MockerTestCase.assertRaises() will now return the exception raised,Gustavo Niemeyer2010-06-201-0/+4
|\ | | | | | | | | allowing further inspection of the raised exception (implemented by Thomas Hervé) (#299930).
* | Fixed support for MockerTestCase.addCleanup() in Python 2.3,Gustavo Niemeyer2010-06-201-1/+4
| | | | | | | | by Anders F Björklund (#528657).
* | Unwrap bound methods on replace() and proxy(), as suggestedGustavo Niemeyer2010-06-201-0/+3
| | | | | | | | by James Henstridge (#270782).
* | Implemented Expect helper, which allows creating a new expect()Gustavo Niemeyer2010-06-201-0/+7
| | | | | | | | | | | | "function" with an explicitly provided Mocker instance. This helps in cases where the expression can't result in a Mock instance (e.g. expect(iter(mock))) (#196388).
* | Added MockerTestCase to __all__.Gustavo Niemeyer2010-06-201-0/+2
| |
* | Applied change suggested by David Glick to avoid reimporting modules (#529675).Gustavo Niemeyer2010-06-201-1/+4
| |
* | Changed license to BSD, since the PSF license only applies to PythonGustavo Niemeyer2010-06-201-1/+23
| | | | | | | | itself (#583335).
* | Updated NEWS file.Gustavo Niemeyer2010-06-191-0/+9
|/
* Fixed patching of objects which define __getattr__.0.10.1Gustavo Niemeyer2007-12-111-1/+7
|
* Preparing to release 0.10.0.10Gustavo Niemeyer2007-12-091-1/+1
|
* Orderer() is now implemented based on may_run() instead of matches().Gustavo Niemeyer2007-12-091-4/+7
| | | | | If the event is run with may_run() False, a nice assertion error is raised with a nice debugging message. :-)
* When the expression executed isn't exactly the same as theGustavo Niemeyer2007-12-091-0/+4
| | | | | recorded events (e.g. when parameter matchers are used), show in the error message the real expression run, to aid in debugging.
* Fixed problem when requesting order on similar expressions. TheGustavo Niemeyer2007-12-091-0/+3
| | | | second expression might not be accepted.
* MockerTestCase.makeFile() with content=None (the default) nowGustavo Niemeyer2007-12-071-0/+4
| | | | | consistently returns an unexistent temporary filename which is properly cleaned up if created.
* New 'path' option to MockerTestCase.makeFile() and makeDir(),Gustavo Niemeyer2007-12-051-0/+3
| | | | which allows setting the full target path with a single option.
* New MATCH() argument matcher, which allows using a functionGustavo Niemeyer2007-12-051-0/+3
| | | | to match an argument generically. E.g. MATCH(lambda x: x > 10)
* Implemented MockerTestCase.addCleanup(). It allows one toGustavo Niemeyer2007-12-051-1/+5
| | | | | register cleanup functions to be called after the test is complete.
* Now when a spec is provided (or with proxy/replace/patch) theGustavo Niemeyer2007-12-041-0/+4
| | | | | existence of the real method is checked even if the mocked method doesn't have to execute (e.g. due to count(0)).
* MockerTestCase now verifies if the mocker is put in replayGustavo Niemeyer2007-12-041-0/+3
| | | | mode in cases where events were recorded.
* Implemented support for Deferred results as understood byGustavo Niemeyer2007-12-041-0/+8
| | | | | Twisted Trial's TestCase, so that coexistence by multiple inheritance is possible and trivial.
* Preparing to release 0.9.3.0.9.3Gustavo Niemeyer2007-11-241-1/+1
|
* - Added support for Python 2.3 (patch by Phillip J. Eby).Gustavo Niemeyer2007-11-241-0/+5
| | | | | - Added MockerTestCase.assert{True,False} aliases, so that they're available even in Python 2.3.
* Introduced automatic test coverage verification, and covered theGustavo Niemeyer2007-11-231-0/+8
| | | | few statements which were not being passed through.
* Now Mocker.mock()/proxy()/replace() accept a 'count' keywordGustavo Niemeyer2007-11-221-0/+4
| | | | | parameter, which if set to False, the default behavior of allowing expressions just once is disabled.
* In recording mode, mock.__class__ will now return Mock, and notGustavo Niemeyer2007-11-221-0/+9
| | | | | | record the action. This allows Mocker to be used in interactive environments which inspect the result's type, such as in iPython (reported by Alex Dante).
* Typo fix in NEWS.Gustavo Niemeyer2007-11-191-1/+1
|
* Fixed setup.py to install mocker.py properly.0.9.1Gustavo Niemeyer2007-11-181-0/+6
|
* "unexistent" doesn't exist.Gustavo Niemeyer2007-11-171-1/+1
|
* Preparing to release version 0.9.0.9Gustavo Niemeyer2007-11-171-1/+1
|
* Added MockerTestCase.assert[Not]{Starts,Ends}With().Gustavo Niemeyer2007-11-171-0/+2
|
* Added MockerTestCase.assertMethodsMatch(). It will verify if allGustavo Niemeyer2007-11-171-0/+6
| | | | | | | public methods found in the class passed as the first argument are also present in the class passed as the second argument, and that they accept the same arguments. This is useful to verify if a fake or stub class have the same API as the real class being simulated.
* Implemented state resetting on replay() for RunCounter and Orderer.Gustavo Niemeyer2007-11-131-2/+6
|
* When using an unexistent import path for Mocker.proxy(), raise anGustavo Niemeyer2007-11-131-0/+4
| | | | | ImportError on the base module, rather than using the actual string as the object (#162315).
* Mocker.on_restore() removed. Restore isn't performed if replay()Gustavo Niemeyer2007-11-121-1/+5
| | | | | isn't called, and that may not be obvious, so a hook won't be exposed for now.
* New MockerTestCase.makeFile() and .makeDir() helpers. They offerGustavo Niemeyer2007-11-121-0/+8
| | | | | easy creation of temporary files/directories with certainty of removal after tests finish running.
* Adding release infrastructure.0.8Gustavo Niemeyer2007-11-111-0/+4