hyperspy.tests package

Subpackages

Submodules

hyperspy.tests.test_dictionary_tree_browser module

class hyperspy.tests.test_dictionary_tree_browser.TestDictionaryBrowser

Bases: object

setUp()
test_add_dictionary()
test_add_signal_in_dictionary()
test_date_time_nanosecond_precision()
test_date_time_now()
test_signal_to_dictionary()

hyperspy.tests.test_events module

class hyperspy.tests.test_events.EventsBase

Bases: object

on_trigger(**kwargs)
on_trigger2(**kwargs)
trigger_check(trigger, should_trigger, **kwargs)
trigger_check2(trigger, should_trigger, **kwargs)
class hyperspy.tests.test_events.TestEventsSignatures

Bases: hyperspy.tests.test_events.EventsBase

setUp()
test_connected_and_disconnect()
test_trigger_kwarg_validity()
test_type(*arg, **kw)
class hyperspy.tests.test_events.TestEventsSuppression

Bases: hyperspy.tests.test_events.EventsBase

setUp()
test_exception_event(*arg, **kw)
test_exception_events(*arg, **kw)
test_exception_nested(*arg, **kw)
test_exception_single(*arg, **kw)
test_simple_suppression()
test_suppresion_nesting()
test_suppress_wrong()
test_suppression_restore()
test_suppression_single()
test_suppressor_add_args()
test_suppressor_all_callback_in_events()
test_suppressor_init_args()
class hyperspy.tests.test_events.TestTriggerArgResolution

Bases: hyperspy.tests.test_events.EventsBase

setup()
test_all_kwargs_resolution()
test_already_connected(*arg, **kw)
test_arguments()
test_deepcopy()
test_not_connected(*arg, **kw)
test_some_kwargs_resolution()
test_wrong_default_order(*arg, **kw)
test_wrong_kwarg_name(*arg, **kw)
hyperspy.tests.test_events.f_a(**kwargs)
hyperspy.tests.test_events.f_b(**kwargs)
hyperspy.tests.test_events.f_c(**kwargs)
hyperspy.tests.test_events.f_d(a, b, c)
hyperspy.tests.test_events.test_events_container_magic_attributes()

hyperspy.tests.test_interactive module

class hyperspy.tests.test_interactive.TestInteractive

Bases: object

setUp()
test_chained_interactive()
test_interactive_sum()
test_interactive_sum_auto_event()
test_interactive_sum_no_out()
test_recompute()
test_recompute_auto_recompute()
test_two_recompute_events()
test_two_update_events()

hyperspy.tests.test_travis module

hyperspy.tests.test_travis.test_travis()

Module contents

hyperspy.tests.test(args=[], no_path_adjustment=False)

Run tests.

args : list of strings
a list of options that will be passed to nosetests
no_path_adjustment : bool
If True it the –no-path-adjustment option wil be passed to nosetests