def test_config_poolsize_none(proposal): """ Test the popluation configuration raises an error if poolsize is None. """ with pytest.raises(RuntimeError) as excinfo: FlowProposal.configure_population(proposal, None, None, True, 10, 1.0, 0.0, 'gaussian') assert 'poolsize' in str(excinfo.value)
def test_config_drawsize_none(proposal): """Test the popluation configuration with no drawsize given""" FlowProposal.configure_population(proposal, 2000, None, True, 10, 1.0, 0.0, 'gaussian') assert proposal.drawsize == 2000