def _extend_pool_results(base_results: PoolResults, extension: PoolResults): base_results.pickups.extend(extension.pickups) base_results.assignment.update(extension.assignment) add_resources_into_another(base_results.initial_resources, extension.initial_resources)
def test_add_resources_into_another(a, b, result): add_resources_into_another(a, b) assert a == result
def _extend_pool_results(base_results: PoolResults, extension: PoolResults): base_results[0].extend(extension[0]) base_results[1].update(extension[1]) add_resources_into_another(base_results[2], extension[2])