blob: 560b0fa6f3aee6ed39bc425b64be842e84aa563c (
plain)
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
52
53
54
55
56
57
58
59
60
61
|
---------------------------
testresources release notes
---------------------------
IN DEVELOPMENT
--------------
CHANGES:
* testresources needs pyunit3k to run the testresources test suite. You
can still use testresources without using pyunit3k. (Jonathan Lange)
IMPROVEMENTS:
* Many more docstrings. (Jonathan Lange)
* Expanded README. (Jonathan Lange)
* Expanded TODO. (Jonathan Lange)
* Started keeping a NEWS file! (Jonathan Lange)
BUG FIXES:
* Calling getResource on a dirty resource now triggers a clean and re-make
of that resource. (Jonathan Lange)
API CHANGES:
* ResourcedTestCase.setUpResources and tearDownResources are now instance
methods, not static methods. (Jonathan Lange)
* All methods on TestResource are now instance methods, and thus tests
should use instances of TestResource subclasses, not the classes
themselves. (Jonathan Lange)
* TestResource.setResource has been renamed to _setResource.
(Jonathan Lange)
* SampleTestResource has been removed. (Jonathan Lange)
* ResourcedTestCase will now look for resources in the 'resources'
attribute, rather than the '_resources' attribute. (Jonathan Lange)
* TestResource subclasses should override 'make' and 'clean' where they
previously overrode '_makeResource' and '_cleanResource'.
(Jonathan Lange)
INTERNALS:
* A lot of the tests have been split up into smaller tests. Others have
been refactored. (Jonathan Lange)
* If calling finishedWith on a TestResource reduces its usage count to
zero, then the TestResource considers itself clean, i.e. _dirty is set
to True. (Jonathan Lange)
* OptimisingTestSuite has been refactored internally so that the way we
switch active resources and determine the cost of switching is more
obvious. (Jonathan Lange)
|