コード例 #1
0
def test_file_search_BAU(doctype, like, strict, expected):
    assert file_search(doctype=doctype, like=like, strict=strict) == expected
コード例 #2
0
def test_file_search_ValueError_4(strict):

    with pytest.raises(ValueError):

        file_search(strict=strict)
コード例 #3
0
def test_file_search_ValueError_2(path):

    with pytest.raises(ValueError):

        file_search(path=path)
コード例 #4
0
def test_file_search_ValueError_3(doctype):

    with pytest.raises(ValueError):

        file_search(doctype=doctype)
コード例 #5
0
def test_file_search_ValueError_1(like):

    with pytest.raises(ValueError):

        file_search(like=like)