Hi,
I'm trying to test my webapp with Paste and Nose (following the
tutorial on the website), but I have some trouble making it working
when I make some MySQL queries.
Here is my test code:
class TestCode:
def test_index(self):
testapp = TestApp(app.wsgifunc())
r = testapp.get('/')
assert_equal(r.status, 200)
and here is the implementation of '/' (index):
class news:
def GET(self):
obj = db.select('news')
return render.test(obj)
When I run the test, the test is failing because of: "AssertionError:
No errors should be written".
But when I run the same test without the SQL query, the test run
without any trouble.
Thanks for your help !
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/webpy?hl=en.