Permalink
Browse files

Last minute fixes

  • Loading branch information...
flaper87 committed Jan 13, 2011
1 parent b513bec commit beda7e9946b500a81bd3b3914a854fbba0e32a37
Showing with 3 additions and 2 deletions.
  1. +1 −0 MANIFEST.in
  2. +1 −1 tests/embedded/tests.py
  3. +1 −1 tests/general/tests.py
View
@@ -1,3 +1,4 @@
include MANIFEST.in
include README.rst
include AUTHORS
include Changelog.rst
View
@@ -57,9 +57,9 @@ def test_in_dictfield(self):
self.assertEqual(obj.dict_emb['lala'].datetime, foodate)
obj.dict_emb['blah'].charfield = "Some Change"
obj.dict_emb['foo'] = EmbeddedModel(charfield='bar')
time.sleep(1) # sorry for that, FIXME!
obj.save()
obj = Model.objects.get()
obj.save()
self.assertEqual(obj.dict_emb['blah'].charfield, 'Some Change')
self.assertNotEqual(obj.dict_emb['blah'].datetime_auto_now_add, obj.dict_emb['blah'].datetime_auto_now)
self.assertEqual(obj.dict_emb['foo'].charfield, 'bar')
View
@@ -515,7 +515,7 @@ def test_simple_or_queries(self):
)
self.assertEqualQueryset(
Simple.objects.filter(Q(Q(a__lt=4) & Q(a__gt=2)) | Q(a=1)),
Simple.objects.filter(Q(Q(a__lt=4) & Q(a__gt=2)) | Q(a=1)).order_by('id'),
[obj1, obj2, obj4]
)

0 comments on commit beda7e9

Please sign in to comment.