mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-20 03:52:01 +02:00
vanilla 19.0
This commit is contained in:
parent
991d2234ca
commit
d1963a3c3a
3066 changed files with 1651266 additions and 922560 deletions
|
|
@ -55,10 +55,10 @@ class TestProfilingWeb(ProfilingHttpCase):
|
|||
self.assertTrue(res['result']['session'])
|
||||
self.assertEqual(last_profile, self.env['ir.profile'].search([], limit=1, order='id desc'), "profiling route shouldn't have been profiled")
|
||||
# Profile a page
|
||||
res = self.url_open('/web/speedscope') # profile a light route
|
||||
res = self.url_open(f'/web/login') # profile a light route
|
||||
new_profile = self.env['ir.profile'].search([], limit=1, order='id desc')
|
||||
self.assertNotEqual(last_profile, new_profile, "A new profile should have been created")
|
||||
self.assertEqual(new_profile.name, '/web/speedscope?')
|
||||
self.assertEqual(new_profile.name, f'/web/login?')
|
||||
|
||||
def test_profile_test_tool(self):
|
||||
with self.profile():
|
||||
|
|
@ -67,7 +67,7 @@ class TestProfilingWeb(ProfilingHttpCase):
|
|||
descriptions = self.env['ir.profile'].search([], order='id desc', limit=3).mapped('name')
|
||||
self.assertEqual(descriptions, [
|
||||
f'test_profile_test_tool uid:{self.env.uid} warm ',
|
||||
f'test_profile_test_tool uid:{self.env.uid} warm /web/login?',
|
||||
f'test_profile_test_tool uid:{self.env.uid} warm /web/login?redirect=%2Fweb%3F',
|
||||
f'test_profile_test_tool uid:{self.env.uid} warm /web?',
|
||||
])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue