Previously, we have only supported doctests - now we also have
support for proper unit tests in the gpodder.test package, and
already the first test case for gpodder.model.
The following command has been used:
grep -r '2005-2009 Thomas Perl and the gPodder Team' * | cut -d: -f1 |
xargs sed -i -e 's/2005-2009 Thomas Perl and the gPodder Team/2005-2010
Thomas Perl and the gPodder Team/g'
Updating tags of files should be done in the post-download
hook, this makes gPodder a bit slimmer. If we wanted the
tag update functionality, we should utilize a proper library
that is able to update tags for all media files (mutagen?).
Do not install gettext globally, but have a gettext
function in the gpodder module and import it from all
dependent modules.
Remove the --local command line option and instead
automatically detect if the gpodder script is called
from a source folder (determined by the existence of
"src" and "data" in the parent folder and by the fact
that prefix does not start with '/usr').
Clean up setup.py and use metadata from the module.
Add doctests for the find_mount_point() utility method
and make it more robust while finding shortcomings of
the current implementation by unexpected behaviour that
has been checked with the doctest and mock objects.
Note the unittest requirements (minimock + coverage) in
the README file and rm the ".coverage" file on "make clean".
Migrate the usage of the popen2 module to subprocess,
as popen2 is deprecated in Python 2.6.
Add unittests (doctests) for both MP3 and OGG tag
reading, and add corresponding test data files.
New module "gpodder.unittests" that will run all
unit tests and doctests (currently only gpodder.util)
for gPodder. The tests can easily be run with a
make unittest
in the source tree or with the following command
when gPodder is installed onto the system:
python -m gpodder.unittests
Also added a (currently unused) helper function to
gpodder.util that already has unittests prepared.