Fixing build

This commit is contained in:
Ross Lawley 2012-08-02 09:20:41 +01:00
parent 73635033bd
commit 95dae48778
2 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,6 @@
# http://travis-ci.org/#!/MongoEngine/mongoengine # http://travis-ci.org/#!/MongoEngine/mongoengine
language: python language: python
python: python:
- 2.5
- 2.6 - 2.6
- 2.7 - 2.7
- 3.2 - 3.2

View File

@ -1330,7 +1330,7 @@ class DocumentTest(unittest.TestCase):
doc = Doc.objects.first() doc = Doc.objects.first()
doc.validate() doc.validate()
self.assertEqual([None, 'e'], doc._data.keys()) self.assertEqual([None, 'e'], list(doc._data.keys()))
def test_save(self): def test_save(self):
"""Ensure that a document may be saved in the database. """Ensure that a document may be saved in the database.
@ -1954,7 +1954,7 @@ class DocumentTest(unittest.TestCase):
doc = doc.reload(10) doc = doc.reload(10)
self.assertEqual(doc.embedded_field.list_field[2].list_field, [2, {'hello': 'world'}, 1]) self.assertEqual(doc.embedded_field.list_field[2].list_field, [2, {'hello': 'world'}, 1])
doc.embedded_field.list_field[2].list_field.sort(key=str) doc.embedded_field.list_field[2].list_field.sort(key=str)
doc.save() doc.save()
doc = doc.reload(10) doc = doc.reload(10)
self.assertEqual(doc.embedded_field.list_field[2].list_field, [1, 2, {'hello': 'world'}]) self.assertEqual(doc.embedded_field.list_field[2].list_field, [1, 2, {'hello': 'world'}])
@ -2189,7 +2189,7 @@ class DocumentTest(unittest.TestCase):
doc = doc.reload(10) doc = doc.reload(10)
self.assertEqual(doc.embedded_field.list_field[2].list_field, [2, {'hello': 'world'}, 1]) self.assertEqual(doc.embedded_field.list_field[2].list_field, [2, {'hello': 'world'}, 1])
doc.embedded_field.list_field[2].list_field.sort(key=str) doc.embedded_field.list_field[2].list_field.sort(key=str)
doc.save() doc.save()
doc = doc.reload(10) doc = doc.reload(10)
self.assertEqual(doc.embedded_field.list_field[2].list_field, [1, 2, {'hello': 'world'}]) self.assertEqual(doc.embedded_field.list_field[2].list_field, [1, 2, {'hello': 'world'}])