summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* A mock created by patch with a spec as the list argument will be callable if ↵Michael Foord2012-03-251-1/+21
| | | | __call__ is in the spec
* Minor cleanupsMichael Foord2012-03-251-6/+3
|
* Some test fixes to always clean up patchesMichael Foord2012-03-251-5/+6
|
* Fix various bugs around spec arguments to patchersMichael Foord2012-03-251-6/+57
|
* Make using create=True with spec=True in patchers an errorMichael Foord2012-03-251-0/+15
|
* Propagate exception info in _patch.__exit__Michael Foord2012-03-201-2/+32
|\
| * Propogate exceptions in _patch.__exit__()Kumar McMillan2012-03-141-2/+33
| | | | | | | | Fixes issue 141
* | Change comparison methods on MagicMock to return NotImplementedMichael Foord2012-03-171-0/+13
| |
* | Adding PropertyMockMichael Foord2012-03-131-1/+18
| |
* | Make __class__ assignableMichael Foord2012-03-131-0/+7
| |
* | Removing mocksignature documentationMichael Foord2012-03-133-45/+58
| |
* | Adding mock_open helperMichael Foord2012-03-132-2/+58
| |
* | mocksignature and tests removedMichael Foord2012-03-135-449/+93
| |
* | Restore expectedFailure around testMichael Foord2012-03-131-0/+1
| |
* | Removed failing test for spec inheritance - should not be on by defaultrelease-0.8-maintMichael Foord2012-03-081-13/+0
| |
* | Failing test for create_autospec and unbound methodsMichael Foord2012-03-041-3/+6
| |
* | Failing test and changelog entry for spec inheritanceMichael Foord2012-03-031-0/+13
|/
* Improvement to handing of MagicMock.__iter__ return value.Michael Foord2012-02-121-0/+10
|
* Minor doc update plus whitespace removalMichael Foord2012-02-075-8/+5
|
* Fix ANY comparisons with call objectsMichael Foord2012-01-221-0/+9
|
* Doc updatesMichael Foord2012-01-151-1/+1
| | | | Improved repr for sentinel objects
* Extended test for ANYMichael Foord2012-01-101-12/+21
|
* Extended test for ANYMichael Foord2012-01-101-0/+16
|
* Fix ANY equality with some types in assert_called_with callsMichael Foord2012-01-101-0/+9
|
* Removing one expectedFailure and adding oneMichael Foord2012-01-032-3/+3
|
* Note and expectedFailure test for autospec and unbound methodsMichael Foord2012-01-031-0/+12
|
* Update copyright yearsMichael Foord2012-01-029-9/+9
|
* return_value (etc) arguments to patch work with autospec (again)Michael Foord2011-12-301-0/+11
|
* Remove 'configure' keyword argument from create_autospec and accept ↵Michael Foord2011-12-301-0/+20
| | | | arbitrary keyword arguments
* Use weakrefs to avoid circular referencesMichael Foord2011-10-291-0/+6
|
* Further performance improvements instantiating MagicMockMichael Foord2011-10-291-0/+2
|
* Performance improvement instantiating MagicMock,Michael Foord2011-10-291-0/+6
| | | | Magic methods of mocks are no longer hard coded to MagicMock
* Extending test for create_autospec and non-callable instancesMichael Foord2011-10-121-0/+17
|
* create_autospec uses __call__ method for the signature of mocks that are the ↵Michael Foord2011-10-111-0/+4
| | | | return value of classes
* Documentation update and failing test for create_autospecMichael Foord2011-10-111-0/+5
|
* Minor test changeMichael Foord2011-10-091-0/+1
|
* Extend test for patch 'lazy importing'Michael Foord2011-10-091-0/+10
|
* Implementation of attach_mockMichael Foord2011-10-091-0/+32
|
* Setting a mock as a return value of itself no longer modifies repr of the mockMichael Foord2011-10-081-7/+14
|
* Fix setting a mock as its own return value,Michael Foord2011-10-071-0/+23
| | | | expose new issue of setting a return value of a child mock to the top level mock
* Attribute deletion specified and testedMichael Foord2011-09-261-0/+15
|
* Calls to mocks attached as magic methods are recorded in mock callsMichael Foord2011-09-262-6/+20
|
* Test name refactorMichael Foord2011-09-251-10/+15
|
* patch imports lazilyMichael Foord2011-09-252-0/+27
|
* Mocks set as attributes and return values are attached correctly. Calls are ↵Michael Foord2011-08-111-0/+32
| | | | recorded in method_calls and mock_calls of the parent.
* Implementation of mock_add_specMichael Foord2011-08-112-10/+25
|
* Initial implementation of mock_add_specMichael Foord2011-08-101-0/+68
|
* Test improvementMichael Foord2011-08-101-77/+52
|
* Extend some mock_calls tests for named mocksMichael Foord2011-08-101-0/+34
|
* Fixes for mock_calls on intermediate mocks in a call chainMichael Foord2011-08-102-3/+84
|