[pitivi] tests: Fix TestProjectManager.testBackupProject
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] tests: Fix TestProjectManager.testBackupProject
- Date: Mon, 3 Oct 2016 14:13:00 +0000 (UTC)
commit 92052750cbab5c07cbb45a175f47688a0faf07b4
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Mon Oct 3 16:10:30 2016 +0200
tests: Fix TestProjectManager.testBackupProject
Should have been part of 4895d2a65e1a9dfab02b89bb42b19984ddcd3849
tests/test_project.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/tests/test_project.py b/tests/test_project.py
index d37c66d..3ead2f5 100644
--- a/tests/test_project.py
+++ b/tests/test_project.py
@@ -29,6 +29,7 @@ from gi.repository import Gst
from pitivi.project import Project
from pitivi.project import ProjectManager
+from pitivi.utils.misc import path_from_uri
from tests import common
@@ -272,10 +273,10 @@ class TestProjectManager(TestCase):
# Save the backup
self.assertTrue(self.manager.saveProject(
self.manager.current_project, backup=True))
- self.assertTrue(uri_is_reachable(backup_uri))
+ self.assertTrue(os.path.isfile(path_from_uri(backup_uri)))
self.manager.closeRunningProject()
- self.assertFalse(uri_is_reachable(backup_uri),
+ self.assertFalse(os.path.isfile(path_from_uri(backup_uri)),
"Backup file not deleted when project closed")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]