We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 473a374 commit c70d3e6Copy full SHA for c70d3e6
1 file changed
dje/tests/test_admin.py
@@ -65,6 +65,16 @@ def test_admin_history_view_content(self):
65
self.assertContains(response, "<td>Added.</td>")
66
self.assertContains(response, "<td>Changed name.</td>")
67
68
+ def test_admin_docs_models_view(self):
69
+ url_docs_models = reverse("admin:docs_models")
70
+ response = self.client.get(url_docs_models)
71
+ self.assertEqual(302, response.status_code)
72
+ self.assertRedirects(response, f"/login/?next={url_docs_models}")
73
+
74
+ self.client.login(username=self.super_user.username, password="secret")
75
76
+ self.assertContains(response, "Models documentation")
77
78
def test_dataspaced_admin_advanced_search_method(self):
79
search_fields = ["f1", "f2"]
80
0 commit comments