def test_list_folders(self): folders = run(query=papis.database.get_all_query_string(), library=papis.config.get_lib(), folders=True) assert (len(folders) >= 1) assert (isinstance(folders, list)) for f in folders: assert (os.path.exists(f))
def test_list_libs(self): libs = run(libraries=True) assert (len(libs) >= 1) assert (papis.config.get('dir') in libs)
def test_list_docs_no_lib(self): docs = run(query=papis.database.get_all_query_string()) assert (isinstance(docs, list)) assert (len(docs) >= 1)
def test_list_libs(self): libs = run(libraries=True) assert (len(libs) >= 1)
def test_list_docs(self): docs = run(query=papis.database.get_all_query_string(), library=papis.config.utils.get_lib_name()) assert (isinstance(docs, list)) assert (len(docs) >= 1)
def test_list_folders(self): folders = run(papis.database.get().get_all_documents(), folders=True) assert (len(folders) >= 1) assert (isinstance(folders, list)) for f in folders: assert (os.path.exists(f))
def test_list_info_notes(self): for k in [[dict(info_files=True), 1], [dict(notes=True), 0]]: objs = run(papis.database.get().get_all_documents(), **k[0]) assert (isinstance(objs, list)) assert (len(objs) >= k[1])