fix bugs
This commit is contained in:
@ -1,7 +1,10 @@
|
||||
import unittest
|
||||
|
||||
from tests.test_cookiecloud import CookieCloudTest
|
||||
from tests.test_doubansync import DoubanSyncTest
|
||||
from tests.test_metainfo import MetaInfoTest
|
||||
from tests.test_recognize import RecognizeTest
|
||||
from tests.test_transfer import TransferTest
|
||||
|
||||
if __name__ == '__main__':
|
||||
suite = unittest.TestSuite()
|
||||
@ -9,6 +12,12 @@ if __name__ == '__main__':
|
||||
suite.addTest(MetaInfoTest('test_metainfo'))
|
||||
# 测试媒体识别
|
||||
suite.addTest(RecognizeTest('test_recognize'))
|
||||
# 测试CookieCloud同步
|
||||
suite.addTest(CookieCloudTest('test_cookiecloud'))
|
||||
# 测试文件转移
|
||||
suite.addTest(TransferTest('test_transfer'))
|
||||
# 测试豆瓣同步
|
||||
suite.addTest(DoubanSyncTest('test_doubansync'))
|
||||
# 运行测试
|
||||
runner = unittest.TextTestRunner()
|
||||
runner.run(suite)
|
||||
|
17
tests/test_cookiecloud.py
Normal file
17
tests/test_cookiecloud.py
Normal file
@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from unittest import TestCase
|
||||
|
||||
from app.chain.cookiecloud import CookieCloudChain
|
||||
|
||||
|
||||
class CookieCloudTest(TestCase):
|
||||
def setUp(self) -> None:
|
||||
pass
|
||||
|
||||
def tearDown(self) -> None:
|
||||
pass
|
||||
|
||||
def test_cookiecloud(self):
|
||||
result = CookieCloudChain().process()
|
||||
self.assertEqual(result[0], True)
|
17
tests/test_doubansync.py
Normal file
17
tests/test_doubansync.py
Normal file
@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from unittest import TestCase
|
||||
|
||||
from app.chain.douban_sync import DoubanSyncChain
|
||||
|
||||
|
||||
class DoubanSyncTest(TestCase):
|
||||
def setUp(self) -> None:
|
||||
pass
|
||||
|
||||
def tearDown(self) -> None:
|
||||
pass
|
||||
|
||||
def test_doubansync(self):
|
||||
result = DoubanSyncChain().process()
|
||||
self.assertEqual(result[0], True)
|
17
tests/test_transfer.py
Normal file
17
tests/test_transfer.py
Normal file
@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from unittest import TestCase
|
||||
|
||||
from app.chain.transfer import TransferChain
|
||||
|
||||
|
||||
class TransferTest(TestCase):
|
||||
def setUp(self) -> None:
|
||||
pass
|
||||
|
||||
def tearDown(self) -> None:
|
||||
pass
|
||||
|
||||
def test_transfer(self):
|
||||
result = TransferChain().process()
|
||||
self.assertEqual(result[0], True)
|
Reference in New Issue
Block a user