MCPcopy Create free account
hub / github.com/Lap-Platform/LAP / TestBasicCompilation

Class TestBasicCompilation

tests/test_graphql_compiler.py:20–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18# ── Basic compilation tests ──────────────────────────────────────────
19
20class TestBasicCompilation:
21 def test_compile_github(self):
22 ds = compile_graphql(str(SPECS_DIR / "github.graphql"))
23 assert isinstance(ds, LAPSpec)
24 assert ds.api_name # non-empty
25 assert len(ds.endpoints) > 0
26
27 def test_compile_ecommerce(self):
28 ds = compile_graphql(str(SPECS_DIR / "ecommerce.graphql"))
29 assert len(ds.endpoints) > 0
30
31 def test_compile_social(self):
32 ds = compile_graphql(str(SPECS_DIR / "social.graphql"))
33 assert len(ds.endpoints) > 0
34
35 def test_compile_analytics(self):
36 ds = compile_graphql(str(SPECS_DIR / "analytics.graphql"))
37 assert len(ds.endpoints) > 0
38
39 def test_compile_cms(self):
40 ds = compile_graphql(str(SPECS_DIR / "cms.graphql"))
41 assert len(ds.endpoints) > 0
42
43
44# ── Method mapping tests ─────────────────────────────────────────────

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected