def test_min_max_radius(proposal): """Test configuration of min radius and no max radius""" FlowProposal.configure_min_max_radius(proposal, 5, 10) assert proposal.min_radius == 5.0 assert proposal.max_radius == 10.0
def test_min_max_radius_invalid_input(proposal, rmin, rmax): """Test configuration of min radius and no max radius""" with pytest.raises(RuntimeError): FlowProposal.configure_min_max_radius(proposal, rmin, rmax)
def test_min_radius_no_max(proposal): """Test configuration of min radius and no max radius""" FlowProposal.configure_min_max_radius(proposal, 5.0, False) assert proposal.min_radius == 5.0 assert proposal.max_radius is False