| 18 | # ── Basic compilation tests ────────────────────────────────────────── |
| 19 | |
| 20 | class 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 ───────────────────────────────────────────── |
nothing calls this directly
no outgoing calls
no test coverage detected