youtube-playlist-archiver/test_main.py
2022-04-03 23:22:26 -04:00

13 lines
373 B
Python

import unittest
import main
class youtubeAPIunitTest(unittest.TestCase):
def test_listVideosType(self):
self.assertEqual(type(main.getPlaylistVideoIDs()), list)
def test_listVideosLen(self):
self.assertGreater(len(main.getPlaylistVideoIDs()), 0)
def test_scanVideoLibrary(self):
self.assertGreater(len(main.getVideosOnDisk()), 0)