Commit Graph

24 Commits

Author SHA1 Message Date
John Wiggins 6e6d243dbd Use assert_raises instead of @raises. 2015-08-28 21:19:20 +02:00
John Wiggins c05108da36 Replace a doc test with some regular unit tests. 2015-08-28 21:03:01 +02:00
Stefan van der Walt 83d5ff9001 Consistently use relative imports 2015-07-11 15:41:37 -05:00
Jeremy Metz 2bc9e82465 Minor stylistic changes, removed lena test 2015-02-23 16:40:38 +00:00
Jeremy Metz 3cbae84360 PEP8 fixes, License file added, tests added
* Added 7 tests (3 in TestSimpleImage, 4 as separate functions)
* Added ImageJ license file
* Updated Li code
  * threshold set from image instead of fixed at 0.5
  * subtract min to handle -ve images (as log is integral part of alg.)
2015-02-23 11:22:12 +00:00
Steven Silvester f4970f9707 Fix canny import test 2015-02-03 21:47:56 -06:00
Steven Silvester d070b2df4d Add an explicit test for canny deprecation 2015-02-03 21:39:23 -06:00
Steven Silvester f898bd0209 Style fixes 2014-12-26 11:26:30 -06:00
Steven Silvester c0a0490eed Fix handling of multiple warnings and update tests
Fix handling of multiple warnings

Update all test __init__ files

Update segmentation pkg

Update the color pkg

Update the exposure pkg

Update the filters pkg

Update the io pkg

Update the measure pkg

Update morphology package

Restructure test setup function

Add expected_warnings to __all__

Update restoration pkg.

Remove explicit filter check since it is done elsewhere

Fix the image test helpers

Update the transform pkg

Fix util pkg

Update viewer pkg
2014-12-23 16:51:06 -06:00
Steven Silvester 1b905d4cef More cleanup and updating of tests
Clean up setup_test and add a teardown_test method

Implement new setup/teardown in novice tests

Fix warning handling in pil_plugin

Update rank tests
2014-12-23 16:50:50 -06:00
Steven Silvester 4680f30466 Add a test setup helper function
Add a function to set up a skimage test

Switch to new test helper function

Import local packages that raise warnings in test setup function

More fixes to doctests

Fix regionprops doc test

Try and fix the test_rank failure.

Remove no longer needed RectangleSelector shim

Skip more doctests in _regionprops

Try importing another scipy subpackage
2014-12-23 16:49:20 -06:00
Steven Silvester f72882fbd2 Import scipy before turning on warnings 2014-12-23 16:49:19 -06:00
Steven Silvester 9e8f91930e Handle warnings in several packages
Start handling warnings in data, exposure, and draw

Add a known_warning decorator and suppress warnings in color pkg

Use the existing all_warnings context manager

Raise warnings in data

Raise warnings in draw

Raise warnings in exposure

Suppress warnings in exposure tests

Add comments about warning suppressions

Raise warnings in feature

Fix warnings in filter package

Add warning handling to graph

Handle warnings in io package
2014-12-23 16:47:41 -06:00
Juan Nunez-Iglesias 6c444490e3 Merge pull request #1243 from emmanuelle/filters_rank
Added an import of `median` from the `filters` module
2014-12-01 12:15:22 +11:00
emmanuelle b730777a74 Modified test for median filter import 2014-11-30 14:58:10 +01:00
emmanuelle bea0c1b7d1 Added an import of median from the filters module
(it's `filters.rank.median`, but it is convenient to have the very common
median filter in `filters` as well)
2014-11-29 14:34:09 +01:00
Johannes Schönberger c45473bdb9 Use new edge operator functions in test cases 2014-11-27 11:11:07 -05:00
Stefan van der Walt e8ee365382 Simplify warning test 2014-11-11 00:32:02 +02:00
Stefan van der Walt 046fe99e4e Make sure warning is raised upon import 2014-11-10 16:56:46 +02:00
Stefan van der Walt 3260594268 Add debug print to failing assert 2014-11-10 16:01:11 +02:00
Stefan van der Walt e03638a9d2 Filter won't be imported twice--check for its deprecation correctly 2014-11-10 13:41:26 +02:00
Stefan van der Walt 1bfb10cb88 Ensure import of old filter namespace raises warning 2014-11-10 13:16:32 +02:00
Stefan van der Walt 3ed648ea08 Fixes according to PR feedback 2014-11-10 13:16:25 +02:00
Stefan van der Walt 78a7b7307a Rename and deprecate filter module to prevent shadowing of built-in keyword 2014-11-10 12:53:50 +02:00