def test_file_search_BAU(doctype, like, strict, expected): assert file_search(doctype=doctype, like=like, strict=strict) == expected
def test_file_search_ValueError_4(strict): with pytest.raises(ValueError): file_search(strict=strict)
def test_file_search_ValueError_2(path): with pytest.raises(ValueError): file_search(path=path)
def test_file_search_ValueError_3(doctype): with pytest.raises(ValueError): file_search(doctype=doctype)
def test_file_search_ValueError_1(like): with pytest.raises(ValueError): file_search(like=like)