poli.tests.observers.test_observers

poli.tests.observers.test_observers#

Tests for the basic promises regarding observers

This module implements tests for - whether we can define an observer, - whether the observer properly logs the

objective calls, and

  • whether we can register observers and run them in isolated processes using set_observer.

Functions

test_attaching_an_observer_to_a_black_box()

test_multiple_observer_registration()

test_observer_registration_and_external_instancing()

An integration test for the observer registration and external instancing

test_registering_observer_with_bad_names()

test_simple_observer_can_be_defined()

Tests whether we can define a simple observer

test_simple_observer_logs_properly()

Tests whether the __call__ of a black box function is properly logged

Classes

SimpleObserver()