Updated unit tests

This commit is contained in:
NandaScott 2021-09-06 12:32:30 -04:00
parent 5e274384f5
commit f624fb47b0
1 changed files with 22 additions and 22 deletions

View File

@ -18,8 +18,8 @@ vanguard = Id(id='87c1234b-3834-4bba-bef2-05707bb1e8e2'); time.sleep(0.1)
alt_lang_card = Collector(code='ths', collector_number='75', lang='ja'); time.sleep(0.1)
planeswalker = Id(id='4c565076-5db2-47ea-8ee0-4a4fd7bb353d'); time.sleep(0.1)
preview_check = Id(id='fb6b12e7-bb93-4eb6-bad1-b256a6ccff4e'); time.sleep(0.1)
class_card = Id(id='37d6343a-c514-4ca6-a415-62d1a473ae20'); time.sleep(0.1)
meld_card = Id(id='5a7a212e-e0b6-4f12-a95c-173cae023f93'); time.sleep(0.1)
foil_etched = Id(id='47f44d5a-f3d6-4a9a-8bd3-b17a88565c51'); time.sleep(0.1)
autocomplete = Autocomplete(q='Thal'); time.sleep(0.1)
@ -198,15 +198,9 @@ class TestCardObjects(unittest.TestCase):
def test_oracle_id(self):
self.assertIsInstance(non_online_card.oracle_id(), str)
def test_foil(self):
self.assertIsInstance(non_online_card.foil(), bool)
def test_loyalty(self):
self.assertIsInstance(planeswalker.loyalty(), str)
def test_non_foil(self):
self.assertIsInstance(non_online_card.nonfoil(), bool)
def test_oversized(self):
self.assertIsInstance(non_online_card.oversized(), bool)
@ -217,6 +211,27 @@ class TestCardObjects(unittest.TestCase):
def test_image_status(self):
self.assertIsInstance(non_online_card.image_status(), str)
def test_finishes(self):
self.assertIsInstance(foil_etched.finishes(), list)
def test_tcgplayer_id(self):
self.assertIsInstance(non_online_card.tcgplayer_id(), int)
def test_tcgplayer_etched_id(self):
self.assertIsInstance(foil_etched.tcgplayer_etched_id(), int)
def test_frame_effects(self):
self.assertIsInstance(frame_effected_card.frame_effects(), list)
def test_games(self):
self.assertIsInstance(non_online_card.games(), list)
def test_promo(self):
self.assertIsInstance(non_online_card.promo(), bool)
def test_released_at(self):
self.assertIsInstance(non_online_card.released_at(), str)
class TestAutocomplete(unittest.TestCase):
def test_object(self):
@ -248,21 +263,6 @@ class TestSearch(unittest.TestCase):
def test_data_length(self):
self.assertIsInstance(search.data_length(), int)
def test_tcgplayer_id(self):
self.assertIsInstance(non_online_card.tcgplayer_id(), int)
def test_frame_effects(self):
self.assertIsInstance(frame_effected_card.frame_effects(), list)
def test_games(self):
self.assertIsInstance(non_online_card.games(), list)
def test_promo(self):
self.assertIsInstance(non_online_card.promo(), bool)
def test_released_at(self):
self.assertIsInstance(non_online_card.released_at(), str)
if __name__ == '__main__':
test_classes_to_run = [