def test_parm_check_cmd(self): check_pass_param(cmd='OK') with pytest.raises(ParamError): check_pass_param(cmd=123)
def test_parm_check_nprobe(self): check_pass_param(nprobe=12) with pytest.raises(ParamError): check_pass_param(nprobe='aaa')
def test_parm_check_nlist(self): check_pass_param(nlist=4096) with pytest.raises(ParamError): check_pass_param(nlist='aaa')
def test_parm_check_ids(self): check_pass_param(ids=[1, 2]) with pytest.raises(ParamError): check_pass_param(ids=[])