Commit graph

63 commits

Author SHA1 Message Date
Tobias Gruetzmacher
9a6a310b76 Fixup copyright years. 2016-10-29 00:21:41 +02:00
Tobias Gruetzmacher
fb37f946e0 Speed up comic module tests.
This fakes an If-Modified-Since header, so most web servers don't need
to send comic images at all. This should also reduce the amount of data
that needs to be fetched for comic module tests.
2016-08-01 00:44:34 +02:00
Tobias Gruetzmacher
efe1308db2 Replace home-grown Python2/3 compat. with six. 2016-05-05 23:33:48 +02:00
Tobias Gruetzmacher
4204f5f1e4 Send "If-Modified-Since" header for images. 2016-04-19 00:36:50 +02:00
Tobias Gruetzmacher
7708c678a6 Move test parametrization into its own file. 2016-04-16 12:01:43 +02:00
Tobias Gruetzmacher
7c3a87970b Fix test naming. 2016-04-16 11:54:29 +02:00
Tobias Gruetzmacher
ee99c087d7 Remove prevUrlMatchesStripUrl.
It was only used for one test.
2016-04-16 01:14:26 +02:00
Tobias Gruetzmacher
060281e5ff Use concrete scraper objects everywhere.
This is a first step for #42. Since most access to the scraper classes
is through instances, modules can now dynamically override url and name
(name is now a property).
2016-04-13 22:17:30 +02:00
Tobias Gruetzmacher
dda920f353 Use py.test's tmpdir fixture. 2016-03-28 16:29:57 +02:00
Tobias Gruetzmacher
36cc4e32f4 Allow selection of comics to test via environment.
If you need to run test cases for your new comic module, you can call
py.test like this:

    TESTCOMICS="ComicFury/" py.test -v tests/test_comics.py
2016-03-13 13:03:41 +01:00
Tobias Gruetzmacher
2ca74d6e6b Convert all tests to py.test & cleanups. 2016-03-07 01:08:57 +01:00
Tobias Gruetzmacher
f0e61a614f Refactor comic module test.
All those create-classes-on-the-fly games make my head hurt ;)
2015-07-17 23:33:25 +02:00
Tobias Gruetzmacher
d88b97573d Stable test order. 2015-07-16 01:32:24 +02:00
Tobias Gruetzmacher
ea4472cd7c Test with comic that is still fetchable... 2015-07-16 00:53:10 +02:00
Bastian Kleineidam
4d63920434 Updated copyright. 2014-01-05 16:50:57 +01:00
Bastian Kleineidam
ca23f7a4d7 Consider text files in result checks. 2013-12-05 18:29:15 +01:00
Bastian Kleineidam
0e780e9741 Fix random test case. 2013-11-08 18:40:55 +01:00
Bastian Kleineidam
e7436d7d79 Fix for python 3.3 2013-11-07 21:22:38 +01:00
Bastian Kleineidam
75bbf10d78 Initialize tmpdir. 2013-06-28 21:34:01 +02:00
Bastian Kleineidam
27c90f07a5 Fix tests with newer pytest versions. 2013-06-28 21:25:55 +02:00
Bastian Kleineidam
4fddb39121 Improve comic strip and image checks. 2013-04-04 18:30:03 +02:00
Bastian Kleineidam
849699b402 Add new TESTALL flag for long tests. 2013-03-26 17:27:34 +01:00
Bastian Kleineidam
bc6da81976 Only 1 test for travis. 2013-03-25 19:49:29 +01:00
Bastian Kleineidam
ea4a59318f Fix comic test with zero strip images. 2013-03-19 20:45:45 +01:00
Bastian Kleineidam
421b036b4b Limit travis tests some more. 2013-03-13 20:08:22 +01:00
Bastian Kleineidam
1d7410c038 Added Zwarwald and AhoiPolloi 2013-03-07 23:51:55 +01:00
Bastian Kleineidam
7442bd6e77 Reduce travis tests some more. 2013-03-06 20:24:24 +01:00
Bastian Kleineidam
bae2a96d8b Added some comic strips and cleanup the scraper code. 2013-03-06 20:00:30 +01:00
Bastian Kleineidam
6081021a24 Fall back to non-locked tests on systems without interprocess locking permission (eg. Travis). 2013-03-01 07:27:41 +01:00
Bastian Kleineidam
ca65deb369 Limit connections to hosts for tests. 2013-02-28 21:08:43 +01:00
Bastian Kleineidam
c2a83fdec9 Reduce Travis test runs. 2013-02-27 21:21:12 +01:00
Bastian Kleineidam
c15740bf0c Go, Travis, Go 2013-02-27 20:17:29 +01:00
Bastian Kleineidam
09df20cd1f Fix some comics and increase travis test number. 2013-02-26 06:12:46 +01:00
Bastian Kleineidam
23b4fd6aa5 More travis tests. 2013-02-23 09:07:54 +01:00
Bastian Kleineidam
f36ed46d6a Fix tests which hit the first URL. 2013-02-21 19:48:21 +01:00
Bastian Kleineidam
ae0e9feea1 Remember skipped URLs. 2013-02-20 20:51:39 +01:00
Bastian Kleineidam
6d04ef7abd Improve error message. 2013-02-20 20:51:15 +01:00
Bastian Kleineidam
75b1d6c08d Fix typo. 2013-02-18 20:55:48 +01:00
Bastian Kleineidam
6155b022a6 Allow selected strips without images. 2013-02-18 20:03:27 +01:00
Bastian Kleineidam
ee8a0d66ee Increase Travis CI tests. 2013-02-18 07:04:30 +01:00
Bastian Kleineidam
1c270a251c Increase Travis tests. 2013-02-17 08:26:44 +01:00
Bastian Kleineidam
727af5ecab Limit number of tests for Travis CI. 2013-02-15 20:39:20 +01:00
Bastian Kleineidam
d3727a3d4e Rename get_scrapers to get_scraperclasses 2013-02-13 20:01:43 +01:00
Bastian Kleineidam
adbff1bca1 Reenable DrunkDuck tests. 2013-02-12 17:55:13 +01:00
Bastian Kleineidam
3f0816efe2 Updated copyright 2013-02-10 18:25:21 +01:00
Bastian Kleineidam
f96e6d2b3e Run tests in parallel. 2013-02-10 18:24:05 +01:00
Bastian Kleineidam
e5a04931d3 Various fixes and additions. 2012-12-12 17:41:29 +01:00
Bastian Kleineidam
faba7b0bca Fix more comics. 2012-12-08 00:45:18 +01:00
Bastian Kleineidam
e5d9002f09 Fix more comics. 2012-12-05 21:52:52 +01:00
Bastian Kleineidam
387dff79a9 Fix comics. 2012-12-04 07:02:40 +01:00