Skip to content

See how your app actually fits together. An interactive, plain-English map of your codebase, drawn by Claude or Codex.

Merge pull request #39

Hayden Smith10e06e3cc37a
diff --cc tests/health.test.mjs
index 437c5d0,a72a15e..ed6139f
--- a/tests/health.test.mjs
+++ b/tests/health.test.mjs
@@@ -44,15 -44,11 +44,20 @@@ test('FastAPI: Annotated dependency ali
assert.deepEqual(openEndpoints(graph), ['POST /comments', 'POST /feedback']);
});
+test('FastAPI: public readiness and liveness endpoints are not security warnings (#7)', () => {
+ const graph = buildFixture('fastapi-annotated');
+ const paths = graph.routes.map((r) => r.p);
+ assert.ok(paths.includes('/readyz'));
+ assert.ok(paths.includes('/livez'));
+ assert.ok(!openEndpoints(graph).includes('GET /readyz'));
+ assert.ok(!openEndpoints(graph).includes('GET /livez'));
+});
+
+ test('FastAPI: a named guard dependency is not a public endpoint (#7)', () => {
+ const graph = buildFixture('fastapi-guard-name');
+ assert.deepEqual(openEndpoints(graph), ['POST /billing/open']);
+ });
+
test('FastAPI: checks added where a router is included count as sign-in checks', () => {
const graph = buildFixture('fastapi-include-router');
assert.equal(graph.routes.length, 4, `expected the sample's 4 endpoints, found ${graph.routes.length}`);