PDF: Use pytest.mark.skipif for skipping tests
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Mon, 15 Apr 2013 21:34:27 +0000 (23:34 +0200)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Tue, 16 Apr 2013 21:39:01 +0000 (23:39 +0200)
commit54b3113abc464f1401cda60b236e134935649f9a
treead8fecce05c9740086d2bbe651bffabe3b8b5b31
parent24b1683b0dc1d9be1cb664310768f9e08e85d7e5
PDF: Use pytest.mark.skipif for skipping tests

Instead of leaving test early if they can not run, use the
pytest.mark.skipif marked to tell the test system not to
even run the test.

This also adds to the stats, because skipped tests are
counted differently. Thus making it obvious, that some
tests did not run, because of any reason.
mediagoblin/tests/test_pdf.py
mediagoblin/tests/test_submission.py