def setUp(self): cache = Yogurt.testingResetCache() self.app = YogurtApp.app.test_client() with open('tests/GslTestData.json', 'r') as fd: videos = json.loads(fd.read())['videos'] Feed_TwitchTv.getChannelVideos = MagicMock(return_value=videos) Feed_TwitchTv.getChannelObject = MagicMock(return_value={}) cache.injectFeed(Feed_GSL.Feeds_TwitchTv_GSL()) cache.incubate()
def setUp(self): cache = Yogurt.testingResetCache() self.app = YogurtApp.app.test_client() cache.injectFeed(MockFeedClass()) cache.incubate()