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
Hugo
901c1e2aea Simplify test skipping 2018-10-24 22:29:01 +03:00
Hugo
06ad343d35 Simplify skipping 2018-10-21 17:47:35 +03:00
Hugo
e33dd498f5 Prefer more conventional __version__ rather than PILLOW_VERSION 2018-04-25 11:21:38 +03:00
homm
1ba4e9e5ba remove end of file banner from all files 2016-07-10 14:11:28 +03:00
wiredfool
7a4ff8e66c Forcing this one to pass 2016-01-01 15:57:42 +00:00
hugovk
2879819ce7 Style/health fixes 2015-04-01 16:47:01 +03:00
wiredfool
81ebc21abf Relax pyroma for RC versions 2014-09-29 13:14:49 -07:00
hugovk
8de95676e0 flake8 2014-08-26 16:47:10 +03:00
hugovk
65cbdae449 Run nose in verbose mode so we can see the tests being run/skipped. Override __str__ in PillowTestCase for nicer output, and make sure all tests are derived from PillowTestCase. 2014-07-20 01:16:51 +03:00
hugovk
7b838f31b4 Import helper so unittest2 is imported for Py2.6 (re: #743) 2014-07-01 02:05:55 +03:00
hugovk
d5bb962f83 Add test to ensure a Pyroma is a 10/10 Mascarpone 2014-06-28 23:48:14 +03:00