[pitivi] tests: Make sure some samples are available to the unittests
- From: Mathieu Duponchelle <mathieudu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] tests: Make sure some samples are available to the unittests
- Date: Thu, 20 Mar 2014 23:42:24 +0000 (UTC)
commit 25a282f340922a60e85799ea0b8a7b765f1f2726
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Fri Mar 21 00:11:05 2014 +0100
tests: Make sure some samples are available to the unittests
tests/Makefile.am | 4 ++++
tests/dogtail_scripts/helper_functions.py | 2 +-
tests/dogtail_scripts/test_base.py | 2 +-
.../dogtail_scripts/test_dialogs_clipmediaprops.py | 4 ++--
tests/dogtail_scripts/test_timeline.py | 2 +-
.../{tears of steel.webm => tears_of_steel.webm} | Bin 208575 -> 208575 bytes
tests/test_project.py | 2 +-
7 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 4df70eb..84281be 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -22,10 +22,14 @@ tests = \
test_widgets.py
# Keep the list sorted!
+samples = \
+ samples/tears_of_steel.webm
+
EXTRA_DIST = \
__init__.py \
common.py \
runtests.py \
+ $(samples) \
$(tests)
clean-local:
diff --git a/tests/dogtail_scripts/helper_functions.py b/tests/dogtail_scripts/helper_functions.py
index a546ea7..7b410db 100644
--- a/tests/dogtail_scripts/helper_functions.py
+++ b/tests/dogtail_scripts/helper_functions.py
@@ -116,7 +116,7 @@ class HelpFunc(BaseDogTail):
icon.deselect()
self.zoom_best_fit_button.click()
- def import_media(self, filename="tears of steel.webm"):
+ def import_media(self, filename="tears_of_steel.webm"):
"""
@return: The icon widget.
"""
diff --git a/tests/dogtail_scripts/test_base.py b/tests/dogtail_scripts/test_base.py
index 1926750..3eed6ba 100644
--- a/tests/dogtail_scripts/test_base.py
+++ b/tests/dogtail_scripts/test_base.py
@@ -6,7 +6,7 @@ import os
from time import time, sleep
-# These are the timecodes we expect for "tears of steel.webm", depending on
+# These are the timecodes we expect for "tears_of_steel.webm", depending on
# if we insert it once in a blank timeline or twice in a blank timeline.
DURATION_OF_ONE_CLIP = "00:01.999"
DURATION_OF_TWO_CLIPS = "00:03.999"
diff --git a/tests/dogtail_scripts/test_dialogs_clipmediaprops.py
b/tests/dogtail_scripts/test_dialogs_clipmediaprops.py
index 1c8256a..fcd8eae 100644
--- a/tests/dogtail_scripts/test_dialogs_clipmediaprops.py
+++ b/tests/dogtail_scripts/test_dialogs_clipmediaprops.py
@@ -23,14 +23,14 @@ class DialogsClipMediaPropsTest(HelpFunc):
dialog.child(name="Cancel").click()
sample.deselect()
- # Do the same thing for "tears of steel.webm":
+ # Do the same thing for "tears_of_steel.webm":
sample = self.import_media()
sample.select()
media_props_button.click()
# Check again for the presence of the dialog and its contents
dialog = self.pitivi.child(name="Clip Properties", roleName="dialog", recursive=False)
- # These are the properties of "tears of steel.webm":
+ # These are the properties of "tears_of_steel.webm":
labels = {"Video:", "960", "400", "25 fps", "Square",
"Audio:", "Mono", "44.1 kHz"}
real_labels = set([])
diff --git a/tests/dogtail_scripts/test_timeline.py b/tests/dogtail_scripts/test_timeline.py
index 73eaba0..10d3d1c 100644
--- a/tests/dogtail_scripts/test_timeline.py
+++ b/tests/dogtail_scripts/test_timeline.py
@@ -198,7 +198,7 @@ class TimelineTest(HelpFunc):
self.assertNotEqual(timecode_widget.text, seekbefore, "Not rippled after adding effect")
def test_image_video_mix(self):
- files = ["tears of steel.webm", "flat_colour2_640x480.png",
+ files = ["tears_of_steel.webm", "flat_colour2_640x480.png",
"flat_colour4_1600x1200.jpg", "flat_colour1_640x480.png",
"flat_colour3_320x180.png", "flat_colour5_1600x1200.jpg"]
samples = self.import_media_multiple(files)
diff --git a/tests/test_project.py b/tests/test_project.py
index 41c9adf..33d0875 100644
--- a/tests/test_project.py
+++ b/tests/test_project.py
@@ -359,7 +359,7 @@ class TestProjectLoading(TestCase):
# Create a blank project and save it.
project = Project("noname")
result = [False, False, False]
- uris = ["file://%s/samples/tears of steel.webm" % os.path.dirname(os.path.abspath(__file__))]
+ uris = ["file://%s/samples/tears_of_steel.webm" % os.path.dirname(os.path.abspath(__file__))]
project.connect("loaded", loaded, self.mainloop, result, uris)
project.connect("done-importing", added, self.mainloop, result, uris)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]