MCPcopy Create free account
hub / github.com/explorerhq/sql-explorer / test_headers

Method test_headers

explorer/tests/test_views.py:50–58  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

48 self.assertTemplateUsed(resp, "admin/login.html")
49
50 def test_headers(self):
51 SimpleQueryFactory(title="foo - bar1")
52 SimpleQueryFactory(title="foo - bar2")
53 SimpleQueryFactory(title="foo - bar3")
54 SimpleQueryFactory(title="qux - mux")
55 resp = self.client.get(reverse("explorer_index"))
56 self.assertContains(resp, "foo (3)")
57 self.assertContains(resp, "foo - bar2")
58 self.assertContains(resp, "qux - mux")
59
60 def test_permissions_show_only_allowed_queries(self):
61 self.client.logout()

Callers

nothing calls this directly

Calls 2

SimpleQueryFactoryClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected