Commit Graph

12 Commits

Author SHA1 Message Date
Jon Dufresne
7da17ad41e Improve pytest configuration to allow specific tests as CLI args
The previous test configuration made it difficult to run a single test
with the pytest CLI. There were two major issues:

- The Tests directory was not a package. It now includes a __init__.py
  file and imports from other tests modules are done with relative
  imports.

- setup.cfg always specified the Tests directory. So even if a specific
  test were specified as a CLI arg, this configuration would also always
  include all tests. This configuration has been removed to allow
  specifying a single test on the command line.

Contributors can now run specific tests with a single command such as:

  $ tox -e py37 -- Tests/test_file_pdf.py::TestFilePdf.test_rgb

This makes it easy and faster to iterate on a single test failure and is
very familiar to those that have previously used tox and pytest.

When running tox or pytest with no arguments, they still discover and
runs all tests in the Tests directory.
2019-01-13 09:00:12 -08:00
Jon Dufresne
37f10651bd Clean up commented out debug print statements 2018-09-04 20:02:42 -07:00
Jon Dufresne
dbe9f85c7d Drop support for Python 2.6
* Drop unittest2 requirement
* Use set literals
* Use dict/set comprehension
* Use str.format() automatic numbering
2016-11-22 04:23:55 -08:00
hugovk
2c4a1209f4 flake8 2016-08-04 09:40:12 +03:00
wiredfool
859ce84976 Version check rather than try/except 2016-01-03 13:04:04 -08:00
wiredfool
21beef192a Fixing test failures on python 2.6/windows 2016-01-03 12:23:39 -08:00
Andrew Murray
c27110ab56 Flake8 fixes 2015-12-10 21:34:02 +11:00
Andrew Murray
4ab0cbb5ba Removed unused variable 2015-12-02 16:15:12 +11:00
wiredfool
5ee9dd6f88 Fixing test on py 2.x 2015-10-02 03:03:15 -07:00
wiredfool
eb80824f51 Have to guard the ctypes.wintypes import 2015-10-01 14:54:32 +01:00
wiredfool
7a48d7658d removing the print 2015-10-01 14:54:32 +01:00
wiredfool
3228860514 Test for PR#1431, following [nu744] 2015-10-01 14:54:32 +01:00