def test_itemLevel(parseItemData): pi = ParseItems() res = pi.getDetails(html=pytest.html) if res.itemLevel == 395: assert True else: assert False
def __extractInfo__(self, link: str) -> List[Item]: itemsList: List[Item] = [] pl = ParseList(link) items: List[str] = pl.FindLinks() for item in items: pi = ParseItems() details: Item = pi.getDetails(href=item) itemsList.append(details) print(f"INFO - Got info on '{details.name}'") if itemsList.__len__() == self.recordLimit: break return itemsList
def parseItemData(getHtmlSource): w = Weapon() if pytest.item.delay == 0.0: # value is defaulted pi = ParseItems() pytest.item = pi.getDetails(html=pytest.html)
def parseItemData(getHtmlSource): w = Armor() if pytest.item.defense == 0: # value is defaulted pi = ParseItems() pytest.item = pi.getDetails(html=pytest.html)