obspy.core.util.testing

Testing utilities for ObsPy.

copyright

The ObsPy Development Team (devs@obspy.org)

license

GNU Lesser General Public License, Version 3 (https://www.gnu.org/copyleft/lesser.html)

Public Functions

add_doctests

Function to add all available doctests of the module with given name (e.g.

add_unittests

Function to add all available unittests of the module with given name (e.g.

compare_images

Custom version of matplotlib.testing.compare.compare_images().

compare_xml_strings

Simple helper function to compare two XML strings.

get_all_py_files

Return a list with full absolute paths to all .py files in ObsPy file tree.

remove_unique_ids

Removes unique ID parts of e.g.

write_png

Custom write_png() function.

Classes

ImageComparison

Handles the comparison against a baseline image in an image test.

WarningsCapture

Try hard to capture all warnings.

Exceptions

ImageComparisonException