From 5a5b2af676eb4eb4e99cd1a9882779a144561494 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 24 Sep 2014 12:51:48 +0800 Subject: [PATCH] Fix another unittest error --- tests/pp_tests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/pp_tests.py b/tests/pp_tests.py index 59a8ead4..8a1a48c5 100644 --- a/tests/pp_tests.py +++ b/tests/pp_tests.py @@ -27,6 +27,7 @@ import sys, os.path from sickbeard.postProcessor import PostProcessor import sickbeard from sickbeard.tv import TVEpisode, TVShow +from sickbeard.name_cache import addNameToCache class PPInitTests(unittest.TestCase): @@ -93,6 +94,9 @@ class PPBasicTests(test.SickbeardTestDBCase): ep.name = "some ep name" ep.saveToDB() + addNameToCache('show name', 3) + sickbeard.PROCESS_METHOD = 'move' + pp = PostProcessor(test.FILEPATH) self.assertTrue(pp.process())