Commit 3b3b6b27 authored by Alexandru Băluț's avatar Alexandru Băluț

tests: Integrate previewer manager resetting in TestCase

parent 66857051
......@@ -35,6 +35,8 @@ from pitivi import check
from pitivi.application import Pitivi
from pitivi.project import ProjectManager
from pitivi.settings import GlobalSettings
from pitivi.timeline.previewers import Previewer
from pitivi.timeline.previewers import PreviewGeneratorManager
from pitivi.timeline.timeline import TimelineContainer
from pitivi.utils.loggable import Loggable
from pitivi.utils.misc import path_from_uri
......@@ -90,12 +92,6 @@ def create_pitivi(**settings):
def create_timeline_container():
# TODO: Get rid of Previewer.manager.
from pitivi.timeline.previewers import Previewer
from pitivi.timeline.previewers import PreviewGeneratorManager
assert hasattr(Previewer, "manager")
Previewer.manager = PreviewGeneratorManager()
app = create_pitivi_mock()
project_manager = ProjectManager(app)
project_manager.newBlankProject()
......@@ -192,6 +188,10 @@ class TestCase(unittest.TestCase, Loggable):
self.__zoom_level = Zoomable.getCurrentZoomLevel()
# TODO: Get rid of Previewer.manager.
assert hasattr(Previewer, "manager")
Previewer.manager = PreviewGeneratorManager()
def tearDown(self):
# don't barf gc info all over the console if we have already failed a
# test case
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment