Commit b527c897 authored by Romain Courteaud's avatar Romain Courteaud

Use Foo_viewPerformance form, to keep results consistents even if new fields

are added in Foo_view.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32957 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 30b5dd80
......@@ -370,7 +370,7 @@ class TestPerformance(ERP5TypeTestCase, LogInterceptor):
# Check performance
before_view = time()
for x in xrange(100):
foo.Foo_view()
foo.Foo_viewPerformance()
after_view = time()
req_time = (after_view - before_view)/100.
......@@ -380,7 +380,7 @@ class TestPerformance(ERP5TypeTestCase, LogInterceptor):
req_time,
MAX_OBJECT_MANY_LINES_VIEW )
if PROFILE:
self.profile(foo.Foo_view)
self.profile(foo.Foo_viewPerformance)
if DO_TEST:
self.failUnless( MIN_OBJECT_MANY_LINES_VIEW < req_time
< MAX_OBJECT_MANY_LINES_VIEW,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment