[pitivi/1.0] tests: Remove mock cleaning logic
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/1.0] tests: Remove mock cleaning logic
- Date: Sun, 11 Feb 2018 02:03:29 +0000 (UTC)
commit b5e8ffd4853a051346b54d15ff3cc1d6a5a23894
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Sun Feb 11 01:31:59 2018 +0100
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.
tests/common.py | 5 -----
tests/test_media_library.py | 8 +-------
2 files changed, 1 insertions(+), 12 deletions(-)
---
diff --git a/tests/common.py b/tests/common.py
index 2fc401e..3b2a3a9 100644
--- a/tests/common.py
+++ b/tests/common.py
@@ -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):
diff --git a/tests/test_media_library.py b/tests/test_media_library.py
index 6664869..f0864f4 100644
--- a/tests/test_media_library.py
+++ b/tests/test_media_library.py
@@ -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()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]