Commit Graph

9 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
3ff4b54050 Added __main__ code 2018-11-12 19:54:26 +11:00
Alexander
4b85230726 clear_cache: number or blocks to keep 2017-09-23 04:20:53 +03:00
Alexander
654b5f7958 tests for env vars 2017-09-19 01:00:18 +03:00
Alexander
44c2698f69 ImagingMemoryBlock structure 2017-09-18 22:48:32 +03:00
Alexander
2ab19bbe44 actually fix tests on pypy 2017-09-18 03:17:45 +03:00
Alexander
23527774d3 test for images wider than block_size 2017-09-18 02:57:14 +03:00
Alexander
ae104b0d0e collect garbage before check memory 2017-09-18 02:51:27 +03:00
Alexander
6d2be876c8 tests 2017-09-18 02:37:47 +03:00