Presets filename handling not bullet-proof
@aleb
Submitted by Alex Băluț Assigned to Alex Băluț @aleb
Description
F....E
$ nosetests tests/test_projectsettings.py tests/test_preset.pyERROR: testSaveAndLoad (tests.test_preset.TestProjectManager)
Traceback (most recent call last):
File "/home/aleb/dev/pitivi-git/tests/test_preset.py", line 100, in testSaveAndLoad
self.manager.save()
File "/home/aleb/dev/pitivi-git/pitivi/ui/preset.py", line 86, in save
if not os.path.exists(self.user_path):
AttributeError: 'SimplePresetManager' object has no attribute 'user_path'
FAIL: testGetUniquePresetName (tests.test_projectsettings.TestProjectSettingsDialog)
======================================================================Traceback (most recent call last):
File "/home/aleb/dev/pitivi-git/tests/test_projectsettings.py", line 33, in testGetUniquePresetName
self.assertEqual('New Preset', name)
AssertionError: 'New Preset' != 'New preset'
Ran 6 tests in 0.003s
FAILED (errors=1, failures=1)
git bisect points to the same commit as the "first bad commit" for both tests:
12cf51ea is the first bad commit
commit 12cf51ea
Author: Feroze Naina ferozenaina@gmail.com
Date: Tue Aug 16 21:55:51 2011 +0530
Renamed data/profiles to data/renderpresets and updated paths
:040000 040000 1a1a09ff8640d9b8cd2c002851d51138f176b68d 664850b6450b881f258dd23409e5947c6bd701e0 M data
:040000 040000 a33d2c3f406ca9fd2c581e3c09176dddd0c84f2a 5d3d560c790e8ea8dae74491d71aefda77efafc8 M pitivi
Imported from https://bugzilla.gnome.org/show_bug.cgi?id=658311