File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -442,7 +442,8 @@ def test_relevant_templates_duplicates(self):
442442 self .login (username = "limited_user" , password = "testpass123" )
443443 # Navigate using Selenium
444444 self .open (
445- reverse ("admin:config_device_change" , args = [device .id ]) + "#config-group"
445+ reverse (f"admin:{ self .config_app_label } _device_change" , args = [device .id ])
446+ + "#config-group"
446447 )
447448 self .hide_loading_overlay ()
448449 with self .subTest ("All shared templates should be visible" ):
Original file line number Diff line number Diff line change @@ -91,7 +91,11 @@ def setUp(self):
9191 def test_unsaved_changes_readonly (self ):
9292 self .login ()
9393 ol = self ._create_object_location ()
94- path = reverse ("admin:config_device_change" , args = [ol .device .id ])
94+ path = reverse (
95+ f"admin:{ self .object_model ._meta .app_label } _"
96+ f"{ self .object_model ._meta .model_name } _change" ,
97+ args = [ol .device .id ],
98+ )
9599
96100 with self .subTest ("Alert should not be displayed without any change" ):
97101 self .open (path )
You can’t perform that action at this time.
0 commit comments