Skip to content

Commit d3e3e12

Browse files
committed
Test specific change admin page as well
1 parent d5c7985 commit d3e3e12

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

simple_history/tests/tests/test_admin.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,14 @@ def test_middleware_saves_user(self):
187187
"retrieve history_user.")
188188

189189
def test_other_admin(self):
190-
"""Demonstrate error viewing the historical admin page for a
191-
model not registered with the default site 'admin'.
190+
"""Test non-default admin instances.
191+
192+
Make sure non-default admin instances can resolve urls and
193+
render pages.
192194
"""
193195
self.login()
194196
state = State.objects.create()
195197
history_url = get_history_url(state, site="other_admin")
196198
self.app.get(history_url)
199+
change_url = get_history_url(state, 0, site="other_admin")
200+
self.app.get(change_url)

0 commit comments

Comments
 (0)