예제 #1
0
    def test_parm_check_cmd(self):
        check_pass_param(cmd='OK')

        with pytest.raises(ParamError):
            check_pass_param(cmd=123)
예제 #2
0
    def test_parm_check_nprobe(self):
        check_pass_param(nprobe=12)

        with pytest.raises(ParamError):
            check_pass_param(nprobe='aaa')
예제 #3
0
    def test_parm_check_nlist(self):
        check_pass_param(nlist=4096)

        with pytest.raises(ParamError):
            check_pass_param(nlist='aaa')
예제 #4
0
    def test_parm_check_ids(self):
        check_pass_param(ids=[1, 2])

        with pytest.raises(ParamError):
            check_pass_param(ids=[])