(client: Client)
| 30 | |
| 31 | @pytest.mark.django_db |
| 32 | def test_readyz_supports_excluding_checks(client: Client): |
| 33 | with simulate_postgres_error(): |
| 34 | resp = get_readyz(client, exclude=["postgres", "postgres_migrations_uptodate"]) |
| 35 | |
| 36 | assert resp.status_code == 200, resp.content |
| 37 | data = resp.json() |
| 38 | assert { |
| 39 | check: status for check, status in data.items() if check in {"postgres", "postgres_migrations_uptodate"} |
| 40 | } == {"postgres": False, "postgres_migrations_uptodate": False} |
| 41 | |
| 42 | |
| 43 | def test_livez_returns_200_and_doesnt_require_any_dependencies(client: Client): |
nothing calls this directly
no test coverage detected
searching dependent graphs…