validators.reward.test_reward_event#

Module Contents#

Classes#

RewardEventTestCase

This class contains unit tests for the RewardEvent classes.

class validators.reward.test_reward_event.RewardEventTestCase(methodName='runTest')#

Bases: unittest.TestCase

This class contains unit tests for the RewardEvent classes.

The tests cover different scenarios where completions may or may not be successful and the reward events are checked that they don’t contain missing values. The reward attribute of all RewardEvents is expected to be a float, and the is_filter_model attribute is expected to be a boolean.

setUp()#

Hook method for setting up the test fixture before exercising it.

test_no_missing_rewards()#
test_imputed_reward_values_are_correct()#
test_parse_reward_events_with_reward_events()#
test_parse_reward_events_with_no_reward_events()#