@@ -410,6 +410,11 @@ def test_search_correct_link_for_normal_page_html_projects(self, api_client, doc
410
410
project .versions .update (documentation_type = doctype )
411
411
version = project .versions .all ().first ()
412
412
413
+ # Refresh index
414
+ version_files = HTMLFile .objects .all ().filter (version = version )
415
+ for f in version_files :
416
+ PageDocument ().update (f )
417
+
413
418
search_params = {
414
419
'project' : project .slug ,
415
420
'version' : version .slug ,
@@ -428,6 +433,11 @@ def test_search_correct_link_for_index_page_html_projects(self, api_client, doct
428
433
project .versions .update (documentation_type = doctype )
429
434
version = project .versions .all ().first ()
430
435
436
+ # Refresh index
437
+ version_files = HTMLFile .objects .all ().filter (version = version )
438
+ for f in version_files :
439
+ PageDocument ().update (f )
440
+
431
441
search_params = {
432
442
'project' : project .slug ,
433
443
'version' : version .slug ,
@@ -446,6 +456,11 @@ def test_search_correct_link_for_index_page_subdirectory_html_projects(self, api
446
456
project .versions .update (documentation_type = doctype )
447
457
version = project .versions .all ().first ()
448
458
459
+ # Refresh index
460
+ version_files = HTMLFile .objects .all ().filter (version = version )
461
+ for f in version_files :
462
+ PageDocument ().update (f )
463
+
449
464
search_params = {
450
465
'project' : project .slug ,
451
466
'version' : version .slug ,
@@ -464,6 +479,11 @@ def test_search_correct_link_for_normal_page_htmldir_projects(self, api_client,
464
479
project .versions .update (documentation_type = doctype )
465
480
version = project .versions .all ().first ()
466
481
482
+ # Refresh index
483
+ version_files = HTMLFile .objects .all ().filter (version = version )
484
+ for f in version_files :
485
+ PageDocument ().update (f )
486
+
467
487
search_params = {
468
488
'project' : project .slug ,
469
489
'version' : version .slug ,
@@ -482,6 +502,11 @@ def test_search_correct_link_for_index_page_htmldir_projects(self, api_client, d
482
502
project .versions .update (documentation_type = doctype )
483
503
version = project .versions .all ().first ()
484
504
505
+ # Refresh index
506
+ version_files = HTMLFile .objects .all ().filter (version = version )
507
+ for f in version_files :
508
+ PageDocument ().update (f )
509
+
485
510
search_params = {
486
511
'project' : project .slug ,
487
512
'version' : version .slug ,
@@ -500,6 +525,11 @@ def test_search_correct_link_for_index_page_subdirectory_htmldir_projects(self,
500
525
project .versions .update (documentation_type = doctype )
501
526
version = project .versions .all ().first ()
502
527
528
+ # Refresh index
529
+ version_files = HTMLFile .objects .all ().filter (version = version )
530
+ for f in version_files :
531
+ PageDocument ().update (f )
532
+
503
533
search_params = {
504
534
'project' : project .slug ,
505
535
'version' : version .slug ,
0 commit comments