Test failures caused by different DB ordering

Bug #1009587 reported by Natalia Bidart
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Apps Directory
Fix Released
Medium
Natalia Bidart

Bug Description

======================================================================
FAIL: test_screenshots (webcatalog.tests.test_models.ApplicationTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/nessita/canonical/webcatalog/popular/src/webcatalog/tests/test_models.py", line 142, in test_screenshots
    urls)
AssertionError: Lists differ: ['http://example.com/screensho... != [u'http://example.com/screensh...

First differing element 0:
http://example.com/screenshot1.png
http://example.com/screenshot2.png

- ['http://example.com/screenshot1.png', 'http://example.com/screenshot2.png']
+ [u'http://example.com/screenshot2.png', u'http://example.com/screenshot1.png']

======================================================================
FAIL: test_video_iframes_urls (webcatalog.tests.test_models.ApplicationTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/nessita/canonical/webcatalog/popular/src/webcatalog/tests/test_models.py", line 178, in test_video_iframes_urls
    urls)
AssertionError: Lists differ: ['http://example.com/video1.m4... != [u'http://example.com/video2.m...

First differing element 0:
http://example.com/video1.m4v
http://example.com/video2.m4v

- ['http://example.com/video1.m4v', 'http://example.com/video2.m4v']
+ [u'http://example.com/video2.m4v', u'http://example.com/video1.m4v']

======================================================================
FAIL: test_save_media_urls (webcatalog.tests.test_forms.ForPurchaseApplicationFormTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/nessita/canonical/webcatalog/popular/src/webcatalog/tests/test_forms.py", line 213, in test_save_media_urls
    ], actual_urls)
AssertionError: Lists differ: ['http://example.com/screensho... != [u'http://example.com/video1.m...

First differing element 0:
http://example.com/screenshot1.png
http://example.com/video1.mp4

- ['http://example.com/screenshot1.png',
? ^^^ ---- - ^^

+ [u'http://example.com/video1.mp4',
? + ^^^ + ^

- 'http://example.com/screenshot2.png',
+ u'http://example.com/screenshot2.png',
? +

- 'http://example.com/video1.mp4']
? ^^^ - ^

+ u'http://example.com/screenshot1.png']
? + ^^^ ++++ + ^^

----------------------------------------------------------------------
Ran 255 tests in 22.665s

FAILED (failures=3)

Related branches

Changed in ubuntu-webcatalog:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Natalia Bidart (nataliabidart)
Changed in ubuntu-webcatalog:
status: In Progress → Fix Committed
Changed in ubuntu-webcatalog:
status: Fix Committed → Fix Released
milestone: none → 12.06
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.