@@ -88,7 +88,7 @@ def import_reimport_performance(self, expected_num_queries1, expected_num_async_
8888 ./run-unittest.sh --test-case unittests.test_importers_performance.TestDojoImporterPerformance 2>&1 | less
8989 Then search for `expected` to find the lines where the expected number of queries is printed.
9090 Or you can use `grep` to filter the output:
91- ./run-unittest.sh --test-case unittests.test_importers_performance.TestDojoImporterPerformance 2>&1 | grep expected
91+ ./run-unittest.sh --test-case unittests.test_importers_performance.TestDojoImporterPerformance 2>&1 | grep expected -B 10
9292 """
9393 product_type , _created = Product_Type .objects .get_or_create (name = "test" )
9494 product , _created = Product .objects .get_or_create (
@@ -241,12 +241,12 @@ def test_import_reimport_reimport_performance_no_async_with_product_grading(self
241241 self .system_settings (enable_product_grade = True )
242242
243243 self .import_reimport_performance (
244- expected_num_queries1 = 702 ,
245- expected_num_async_tasks1 = 15 ,
246- expected_num_queries2 = 645 ,
247- expected_num_async_tasks2 = 28 ,
248- expected_num_queries3 = 322 ,
249- expected_num_async_tasks3 = 25 ,
244+ expected_num_queries1 = 666 ,
245+ expected_num_async_tasks1 = 10 ,
246+ expected_num_queries2 = 630 ,
247+ expected_num_async_tasks2 = 22 ,
248+ expected_num_queries3 = 312 ,
249+ expected_num_async_tasks3 = 20 ,
250250 )
251251
252252 # New pghistory performance tests
@@ -261,11 +261,11 @@ def test_import_reimport_reimport_performance_pghistory_async(self):
261261 configure_pghistory_triggers ()
262262
263263 self .import_reimport_performance (
264- expected_num_queries1 = 648 , # Updated from test execution
264+ expected_num_queries1 = 648 ,
265265 expected_num_async_tasks1 = 10 ,
266- expected_num_queries2 = 603 , # Updated from test execution
266+ expected_num_queries2 = 603 ,
267267 expected_num_async_tasks2 = 22 ,
268- expected_num_queries3 = 287 , # Updated from test execution
268+ expected_num_queries3 = 287 ,
269269 expected_num_async_tasks3 = 20 ,
270270 )
271271
@@ -284,11 +284,11 @@ def test_import_reimport_reimport_performance_pghistory_no_async(self):
284284 testuser .usercontactinfo .save ()
285285
286286 self .import_reimport_performance (
287- expected_num_queries1 = 648 , # Updated from test execution
287+ expected_num_queries1 = 648 ,
288288 expected_num_async_tasks1 = 10 ,
289- expected_num_queries2 = 608 , # Updated from test execution
289+ expected_num_queries2 = 608 ,
290290 expected_num_async_tasks2 = 22 ,
291- expected_num_queries3 = 292 , # Updated from test execution
291+ expected_num_queries3 = 292 ,
292292 expected_num_async_tasks3 = 20 ,
293293 )
294294
@@ -308,10 +308,10 @@ def test_import_reimport_reimport_performance_pghistory_no_async_with_product_gr
308308 self .system_settings (enable_product_grade = True )
309309
310310 self .import_reimport_performance (
311- expected_num_queries1 = 663 , # Updated from test execution
312- expected_num_async_tasks1 = 15 ,
313- expected_num_queries2 = 631 , # Updated from test execution
314- expected_num_async_tasks2 = 28 ,
315- expected_num_queries3 = 312 , # Updated from test execution
316- expected_num_async_tasks3 = 25 ,
311+ expected_num_queries1 = 627 ,
312+ expected_num_async_tasks1 = 10 ,
313+ expected_num_queries2 = 591 ,
314+ expected_num_async_tasks2 = 22 ,
315+ expected_num_queries3 = 273 ,
316+ expected_num_async_tasks3 = 20 ,
317317 )
0 commit comments