Commit Graph

18 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
Andrew Murray
47775f3d50 Resolve __fp when closing and deleting 2018-11-17 21:56:06 +11:00
wiredfool
04052e85c9 Merge pull request #2647 from radarhere/spider
Added file pointer save to SpiderImagePlugin
2017-09-09 10:23:45 +01:00
Andrew Murray
9e843a2d9b Changed format of lambda calls 2017-09-01 21:05:40 +10:00
Andrew Murray
eaffb1414a Added test 2017-07-29 10:20:19 +10:00
Andrew Murray
e8cba27bb1 Changed assert checks to more specific versions 2017-06-03 14:04:54 +10:00
homm
1ba4e9e5ba remove end of file banner from all files 2016-07-10 14:11:28 +03:00
Andrew Murray
dabb68a61e Added tests 2016-04-04 18:48:21 +10:00
Andrew Murray
c27110ab56 Flake8 fixes 2015-12-10 21:34:02 +11:00
Andrew Murray
4d7b630b33 Catch OverflowError in SpiderImagePlugin 2015-11-18 01:18:01 +11:00
Andrew Murray
d20eef450b Added is_animated 2015-06-30 13:25:00 +10:00
Andrew Murray
46f439604c Added tests 2015-06-08 01:02:43 +10:00
hugovk
53a04a4118 Replace lena.spider with hopper.spider, created with Pillow. 2014-09-04 12:28:37 +03:00
hugovk
6c9940e9d1 More tests for SpiderImagePlugin.py 2014-07-15 12:23:02 +03:00
hugovk
cf04a9a0d2 Remove unused tearDownModule 2014-07-07 20:03:50 +03:00
hugovk
3ec505958e Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
hugovk
14c8d8afe4 More spider tests 2014-05-26 21:00:20 +03:00
hugovk
268c419d7c Simple spider test. Test image created with Pillow. 2014-05-26 20:09:12 +03:00