def test_1_get_source_list_gw_with_head(self): data = opasPySolrLib.metadata_get_volumes(source_code="GW") count = data.volumeList.responseInfo.fullCount print(f"Count {count}") assert (count == unitTestConfig.VOL_COUNT_GW or count == unitTestConfig.VOL_COUNT_GW + 1 ) # series TOC adds one
def test_1_get_source_list_SE(self): data = opasPySolrLib.metadata_get_volumes(source_code="SE", source_type="book") count = data.volumeList.responseInfo.fullCount assert (count == unitTestConfig.VOL_COUNT_SE or count == unitTestConfig.VOL_COUNT_SE + 1 ) # series TOC adds one
def test_1_get_source_list_ZBK(self): """ Retrieve an article; make sure it's there and the abstract len is not 0 """ # This old function wasn't used by the code otherwise so removed this call # it retrieves an article but doesn't include search highlighting. # data = opasAPISupportLib.get_article_data("ANIJP-DE.009.0189A", fields=None) # this newer function includes the search parameters if there were some data = opasPySolrLib.metadata_get_volumes(source_code="ZBK", source_type="book") count = data.volumeList.responseInfo.fullCount print(count, " vs ", unitTestConfig.VOL_COUNT_ZBK) assert (count == unitTestConfig.VOL_COUNT_ZBK or count == unitTestConfig.VOL_COUNT_ZBK - 2 ) # whether to count the two offsite zbooks or not
def test_2_get_vols(self): data = opasPySolrLib.metadata_get_volumes(source_type="journal") assert (len(data.volumeList.responseSet) > 2400)
def test_1_get_source_list_AOP(self): data = opasPySolrLib.metadata_get_volumes(source_code="AOP") count = data.volumeList.responseInfo.fullCount assert (count == unitTestConfig.VOL_COUNT_AOP)
def test_1_get_source_list_books(self): data = opasPySolrLib.metadata_get_volumes(source_code="IPL", source_type="book*") count = data.volumeList.responseInfo.fullCount assert (count == unitTestConfig.VOL_COUNT_IPL)
def test_1_get_source_list_NLP(self): data = opasPySolrLib.metadata_get_volumes( source_code="NLP") # , source_type="book") count = data.volumeList.responseInfo.fullCount assert (count == 6)
def test_1_get_source_list_book(self): data = opasPySolrLib.metadata_get_volumes(source_type="book") count = data.volumeList.responseInfo.fullCount assert (count >= unitTestConfig.VOL_COUNT_ALL_BOOKS)
def test_1_get_source_list_gw(self): data = opasPySolrLib.metadata_get_volumes(source_code="GW", source_type="book") count = data.volumeList.responseInfo.fullCount print(f"Count {count}") assert (count == unitTestConfig.VOL_COUNT_GW)
def test_1d_get_source_list_journal(self): data = opasPySolrLib.metadata_get_volumes(source_type="journal") count = data.volumeList.responseInfo.fullCount assert (count >= unitTestConfig.VOL_COUNT_ALL_JOURNALS)