Commit Graph

23 Commits

Author SHA1 Message Date
MarkusHackspacher 82f41f4c21 sorting imports
with isort -y -rc
see #393
2018-07-24 11:08:10 +02:00
Thomas Perl 98ec45a712 Update copyright years (2018) 2018-01-28 19:39:53 +01:00
Thomas Perl 7b46a0ee72 Update copyright years (2017) 2017-12-16 13:54:59 +01:00
Thomas Perl 5a7c30b359 Port to Python 3 2016-11-21 23:13:46 +01:00
Thomas Perl 36eefc8a30 Update copyright years (2016) 2016-01-15 15:22:52 +01:00
Thomas Perl 8d46e504bf Fix coverage usage 2015-12-01 21:38:22 +01:00
Thomas Perl aa72634950 Update copyright years (2015) 2015-05-24 19:33:39 +02:00
Thomas Perl 553e35f219 Update copyright years (2014) 2014-02-27 21:55:13 +01:00
Thomas Perl bda982be02 Update copyright years for 2013 2013-03-05 16:38:48 +01:00
Thomas Perl 9cfbbdbd1e Testing: Add support for HTMLTestRunner reports 2013-02-12 13:03:49 +01:00
Thomas Perl c49dccb2c7 Testing framework: Add support for unit tests
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.
2013-02-12 12:54:12 +01:00
Thomas Perl 6670e5e037 Add some doctests to jsonconfig 2012-02-04 19:21:51 +01:00
Thomas Perl 5205a4b71d Update copyright years (add 2012) 2012-01-09 21:19:24 +01:00
Thomas Perl 1c843fc5ff Only run unit tests when gpodder.unittests is __main__ 2011-07-15 17:38:23 +02:00
Thomas Perl 4376057001 Update copyright years 2011-04-01 18:59:53 +02:00
Thomas Perl cf44f7c30e Code cleanup: Remove unused imports 2010-05-17 18:26:13 +02:00
Thomas Perl 181564f1b7 Add 2010 to the years in copyright notice
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'
2010-01-02 17:35:42 +01:00
Thomas Perl 41b6e827cd Remove libtagupdate + related functionality
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?).
2009-07-06 15:54:57 +02:00
Thomas Perl b1ec8f62e9 Make gPodder more library-like; remove --local
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.
2009-05-07 16:26:07 +02:00
Thomas Perl 3aab8c1b87 More doctests; test "find_mount_point" (using MiniMock)
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".
2009-03-24 19:53:19 +01:00
Thomas Perl 9572c573d4 Support Coverage reporting in gpodder.unittests
If "python-coverage" is installed, report the test
coverage for all currently-tested modules in gPodder
while doing the unittest with "make unittest".
2009-03-24 15:42:39 +01:00
Thomas Perl d23bdd0067 Migrate to subprocess; add unittests (LP bug #345003)
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.
2009-03-21 21:10:46 +01:00
Thomas Perl 043309cec4 Add support for unit testing and doctesting
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.
2009-02-25 14:23:03 +01:00