vanilla 19.0

This commit is contained in:
Ernad Husremovic 2025-10-08 10:49:46 +02:00
parent 991d2234ca
commit d1963a3c3a
3066 changed files with 1651266 additions and 922560 deletions

View file

@ -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?',
])