Skip to content

Commit

Permalink
Updated tests - removed old ones and created the structure for the ne…
Browse files Browse the repository at this point in the history
…w ones
  • Loading branch information
Javinator9889 committed Jun 1, 2020
1 parent b234aee commit 84ef305
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions YouTubeMDBot/tests/download_test.py
Expand Up @@ -5,8 +5,6 @@
from YouTubeMDBot.downloader import M4AYouTubeDownloader
from YouTubeMDBot.downloader import MultipleYouTubeDownloader

from YouTubeMDBot.utils import CBarrier

log = logging.basicConfig()


Expand Down Expand Up @@ -59,12 +57,12 @@ def _test_download(self, downloader: YouTubeDownloader):
self.assertEqual(io.read(), data)

def _download_finished_callback(self, data):
print("Video download finished")
print(type(data))
log.info("Video download finished")
log.debug(type(data))
self.finished += 1

def _download_failed_callback(self, err):
print(f"Captured error: {err}")
log.error(f"Captured error: {err}")


if __name__ == '__main__':
Expand Down

0 comments on commit 84ef305

Please sign in to comment.