fix media exists bug
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
|
||||
from unittest import TestCase
|
||||
|
||||
from app.chain.common import CommonChain
|
||||
from app.chain.identify import IdentifyChain
|
||||
|
||||
|
||||
@ -15,3 +16,5 @@ class RecognizeTest(TestCase):
|
||||
def test_recognize(self):
|
||||
result = IdentifyChain().process(title="我和我的祖国 2019")
|
||||
self.assertEqual(str(result.media_info.tmdb_id), '612845')
|
||||
exists = CommonChain().get_no_exists_info(result.media_info)
|
||||
self.assertEqual(exists, True)
|
||||
|
Reference in New Issue
Block a user