I have a small app which uses webapp2 and ndb and just a couple of simple models. It works well and I can manually test it OK.
I want to start driving future development using tests but can't seem to get my tests running. I'm using nosetests --with-gae and I followed the examples on the Local Unit Testing for Python and also this article http://digitalflapjack.com/blog/2011/jun/14/gaetesting/ with no luck. I keep getting the following error when running my tests: TypeError: order() expects a Property or query Order; received DateTimeProperty('date') from the line: next_event = Event.query(Event.date >= datetime.datetime.now()).order(Event.date).fetch(1) removing the order clause allows the test to pass and running the full app with the clause shows no errors. My tests have the following imports: import unittest from webtest import TestApp from google.appengine.ext import ndb from google.appengine.ext import testbed from event_manager import application Can anyone suggest what is going on and what I have done wrong. Best Regards Neil -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out.