Permalink
Browse files

Fixed app version test failures

  • Loading branch information...
1 parent fcc0cdc commit 8e20e15ea29fa0b346d269a01e84246a90337169 @robhudson robhudson committed Apr 5, 2013
Showing with 6 additions and 5 deletions.
  1. +6 −5 apps/editors/tests/test_views.py
View
11 apps/editors/tests/test_views.py
@@ -1348,7 +1348,9 @@ def test_form(self):
'Select an application first')
r = self.search(application_id=amo.MOBILE.id)
doc = pq(r.content)
- eq_(doc('#id_max_version option').text(), '4.0b2pre 2.0a1pre 1.0')
+ eq_(doc('#id_max_version option').text(),
+ ' '.join([av.version for av in
+ AppVersion.objects.filter(application=amo.MOBILE.id)]))
def test_application_versions_json(self):
self.generate_file('Bieber For Mobile')
@@ -1357,10 +1359,9 @@ def test_application_versions_json(self):
eq_(r.status_code, 200)
data = json.loads(r.content)
eq_(data['choices'],
- [['', ''],
- ['4.0b2pre', '4.0b2pre'],
- ['2.0a1pre', '2.0a1pre'],
- ['1.0', '1.0']])
+ [[av, av] for av in
+ [u''] + [av.version for av in
+ AppVersion.objects.filter(application=amo.MOBILE.id)]])
def test_clear_search_visible(self):
r = self.search(text_query='admin', searching=True)

0 comments on commit 8e20e15

Please sign in to comment.