-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathCHANGELOG
52 lines (31 loc) · 1.42 KB
/
CHANGELOG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
0.2
- Dinguses now yield exactly one item when iterated over. Previously, they
always iterated infinitely.
- Added a helper function to specify return values when creating dinguses:
Dingus(foo=returner(5)) will make the dingus' foo method return 5. All
returner() does is create a dingus with the specified return_value.
- Renamed the "one" method to "once". "one" still exists but is deprecated.
- Improved examples.
- Added ability to exclude objects when isolating with DingusTestCase. Give
DingusTestCase an "exclude" keyword argument that lists the names of the
objects that should be left alone (see examples/isolation).
- Fixed an exception when using tuples as keys in a dingus. (Thanks, Christian
Wyglendowski)
- Added support for pickling dinguses (Thanks, Tanel Külaots)
0.3
- Remove automocking of magic __methods__ in DingusTestCase (thanks, Dave
Stanek).
- Make attributes "del"able.
- Add patch decorator/context manager.
0.3.1
- Fix simple README bug
0.3.2
- Make dinguses copyable with copy.deepcopy (this will return a new dingus
identical, but separate from, the old)
0.3.3
- Add isolate method (the opposite of patch: it patches everything in the
object path's module except the object itself. See the README.
- Allow dinguses to be used as context managers in Python 2.7 (thanks, Chris
Wesseling and Christian Wyglendowski).
0.3.4
- Correctly isolate submodule objects like os.path.isdir (thanks, CJ Gaconnet)