1
2014-04-20 Kenneth Loafman <kenneth@loafman.com>
2
# Merged in lp:~mterry/duplicity/more-test-reorg
3
- Here's another test reorganization / modernization branch. It does the
5
- Drop duplicity/misc.py. It is confusing to have both misc.py and util.py,
6
and most of the code in misc.py was no longer used. I moved the one
7
function that was still used into util.py.
8
- Consolidated the various ways to run tests into just one. I made tox runs
9
go through ./setup.py test, rather than nosetests. And I made the
10
./testing/run-tests scripts just call tox. Now we no longer need nosetests
11
as a test dependency (although you can still use it if you want).
12
- Added two more code quality automated tests: a pep8 one and a pylint one.
13
I disabled almost all checks in each program that gave a warning. These
14
tests just establish a baseline for future improvement.
15
- Moved the test helper code into TestCase subclasses that all tests can
16
use. And used more code sharing and setUp/tearDown cleverness to remove
18
- Reorganized the tests in ./testing/tests into ./testing/functional and
19
./testing/unit -- for whether they drive duplicity as a subprocess or
20
whether they import and test code directly. Each dir can have specialized
21
TestCase subclasses now.
22
- Renamed the files in ./testing/unit to more clearly indicate which file
23
in ./duplicity they are unit testing.
24
- Added some helper methods for tests to set environment and globals.*
25
parameters more safely (i.e. without affecting other tests) by
26
automatically cleaning up any such changes during test tearDown.
27
- Removed test_unicode.py, since it is kind of dumb. It used to be more
28
useful, but now with py2.6, we are just testing that one line of code
29
in it is actually there.
1
31
2014-04-19 Kenneth Loafman <kenneth@loafman.com>
2
32
* Merged in lp:~mterry/duplicity/2.6isms
3
33
- Here's a whole stack of minor syntax modernizations that will become