MCPcopy
hub / github.com/django/django / test_resolve_admin_views

Method test_resolve_admin_views

tests/admin_views/tests.py:1532–1538  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1530 reverse("admin:app_list", args=("admin_views2",))
1531
1532 def test_resolve_admin_views(self):
1533 index_match = resolve("/test_admin/admin4/")
1534 list_match = resolve("/test_admin/admin4/auth/user/")
1535 self.assertIs(index_match.func.admin_site, customadmin.simple_site)
1536 self.assertIsInstance(
1537 list_match.func.model_admin, customadmin.CustomPwdTemplateUserAdmin
1538 )
1539
1540 def test_adminsite_display_site_url(self):
1541 """

Callers

nothing calls this directly

Calls 1

resolveFunction · 0.90

Tested by

no test coverage detected