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

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,
......@@ -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 = common.clean_pitivi_mock( = None
if self.medialibrary:
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