Commit 66857051 authored by Alexandru Băluț's avatar Alexandru Băluț

tests: Remove mock cleaning logic

It does not make sense to clean a mock, and it seems to have no impact
currently.

Also removed an unused function.
parent 02dce7ea
......@@ -47,11 +47,6 @@ detect_leaks = os.environ.get("PITIVI_TEST_DETECT_LEAKS", "0") not in ("0", "")
os.environ["PITIVI_USER_CACHE_DIR"] = tempfile.mkdtemp(suffix="pitiviTestsuite")
def clean_pitivi_mock(app):
app.settings = None
app.proxy_manager = None
def __create_settings(proxyingStrategy=ProxyingStrategy.NOTHING,
numTranscodingJobs=4,
**additional_settings):
......
......@@ -31,10 +31,6 @@ from pitivi.utils.proxy import ProxyingStrategy
from tests import common
def fakeSwitchProxies(asset):
timeline.TimelineContainer.switchProxies(mock.MagicMock(), asset)
class BaseTestMediaLibrary(common.TestCase):
def __init__(self, *args):
......@@ -49,9 +45,7 @@ class BaseTestMediaLibrary(common.TestCase):
def clean(self):
self.mainloop = None
if self.app:
self.app = common.clean_pitivi_mock(self.app)
self.app = None
if self.medialibrary:
self.medialibrary.finalize()
......
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