Vivarium Testing Utilities

Utility functions and classes to make testing vivarium components easier.

class vivarium.testing_utilities.NonCRNTestPopulation[source]
configuration_defaults = {'population': {'age_end': 100, 'age_start': 0, 'exit_age': None}}
name
setup(builder)[source]
generate_test_population(pop_data)[source]
age_simulants(event)[source]
class vivarium.testing_utilities.TestPopulation[source]
name
setup(builder)[source]
generate_test_population(pop_data)[source]
vivarium.testing_utilities.build_table(value, year_start, year_end, columns=('age', 'year', 'sex', 'value'))[source]
vivarium.testing_utilities.make_dummy_column(name, initial_value)[source]
vivarium.testing_utilities.get_randomness(key='test', clock=<function <lambda>>, seed=12345, for_initialization=False)[source]
vivarium.testing_utilities.reset_mocks(mocks)[source]
vivarium.testing_utilities.metadata(file_path)[source]