Skip to content

Commit

Permalink
fix tests and test version push
Browse files Browse the repository at this point in the history
  • Loading branch information
meisnate12 committed Jan 20, 2022
1 parent 32f5f51 commit ec9616c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.2
0.1.3
16 changes: 8 additions & 8 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

from tmdbapis import NotFound, Movie, Person, TVShow
from tmdbapis.tmdb import TMDbAPIs

"""
import logging
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
logger.addHandler(logging.StreamHandler())

"""
class APITests(unittest.TestCase):
@classmethod
def setUpClass(cls):
Expand Down Expand Up @@ -89,15 +89,15 @@ def test_keyword(self):

def test_list(self):
test_list = self.api.create_list("PMM Test", "en", load=True)
test_list.add_items((524434, "movie"))
test_list.add_items([(524434, "movie")])
test_list.reload()
self.assertGreater(len(test_list), 0)
self.assertTrue(test_list.has_item(524434, "movie"))
test_list.remove_items((524434, "movie"))
self.assertFalse(test_list.has_item(524434, "movie"))
test_list.add_items((524434, "movie"))
self.assertTrue(test_list.has_item((524434, "movie")))
test_list.remove_items([(524434, "movie")])
self.assertFalse(test_list.has_item((524434, "movie")))
test_list.add_items([(524434, "movie")])
test_list.clear()
self.assertFalse(test_list.has_item(524434, "movie"))
self.assertFalse(test_list.has_item((524434, "movie")))
test_list.reload()
self.assertEqual(len(test_list), 0)
test_list.delete()
Expand Down

0 comments on commit ec9616c

Please sign in to comment.