@@ -606,7 +606,6 @@ def test_config_modified_signal(self):
606606 # refresh instance to reset _just_created attribute
607607 conf = Config .objects .get (pk = conf .pk )
608608
609- conf ._delete_config_modified_timeout_cache ()
610609 with self .subTest ("signal sent if config status is already modified" ):
611610 with catch_signal (config_modified ) as handler :
612611 conf .templates .add (template1 , template2 )
@@ -624,7 +623,6 @@ def test_config_modified_signal(self):
624623 # reset status
625624 conf .set_status_applied ()
626625
627- conf ._delete_config_modified_timeout_cache ()
628626 with self .subTest ("signal sent after assigning template to config" ):
629627 with catch_signal (config_modified ) as handler :
630628 conf .templates .remove (template2 )
@@ -643,7 +641,6 @@ def test_config_modified_signal(self):
643641 # reset status
644642 conf .set_status_applied ()
645643
646- conf ._delete_config_modified_timeout_cache ()
647644 with self .subTest ("post_clear m2m ignored" ):
648645 with catch_signal (config_modified ) as handler :
649646 conf .templates .clear ()
@@ -658,7 +655,6 @@ def test_config_modified_signal(self):
658655 conf .save ()
659656 conf .refresh_from_db ()
660657
661- conf ._delete_config_modified_timeout_cache ()
662658 with self .subTest ("post_add and previous_status=applied" ):
663659 with catch_signal (config_modified ) as handler :
664660 conf .templates .add (template1 , template2 )
@@ -678,7 +674,6 @@ def test_config_modified_signal(self):
678674 # reset status
679675 conf .set_status_applied ()
680676
681- conf ._delete_config_modified_timeout_cache ()
682677 with self .subTest ("test remove/add" ):
683678 with catch_signal (config_modified ) as handler :
684679 conf .templates .remove (template1 , template2 )
@@ -691,7 +686,6 @@ def test_config_modified_signal(self):
691686 # reset status
692687 conf .set_status_applied ()
693688
694- conf ._delete_config_modified_timeout_cache ()
695689 with self .subTest ("signal sent after changing a template" ):
696690 with catch_signal (config_modified ) as handler :
697691 template1 .config ["interfaces" ][0 ]["name" ] = "eth1"
@@ -709,7 +703,6 @@ def test_config_modified_signal(self):
709703 conf .refresh_from_db ()
710704 self .assertEqual (conf .status , "modified" )
711705
712- conf ._delete_config_modified_timeout_cache ()
713706 with self .subTest ("signal sent also if config is already in modified status" ):
714707 # status has already changed to modified
715708 # signal should be triggered anyway
0 commit comments