Skip to content

Commit f9136b7

Browse files
committed
test(rcfile): point the no-extractor fixture at .ets, not r
Upstream 0.9.6x added a real (optional-dependency-gated) .r extractor since this test was first written, so `language.tpl=r` now hits the "dependency is missing" warning instead of "no AST extractor". Swap to .ets (ArkTS), a recognized code extension with no registered extractor today, to keep exercising the declared-but-unsupported path.
1 parent 7ffaf23 commit f9136b7

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎tests/test_language_overrides.py‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,8 +516,11 @@ def test_a_declared_csharp_file_disambiguates_inherits_by_namespace(tmp_path):
516516

517517

518518
def test_a_declared_unsupported_language_still_warns_no_extractor(tmp_path, capsys):
519-
(tmp_path / "a.tpl").write_text("helper <- function(x) x + 1\n", encoding="utf-8")
520-
(tmp_path / ".graphifyrc").write_text("language.tpl=r\n", encoding="utf-8")
519+
# .ets (ArkTS) is a recognized CODE_EXTENSIONS member with no registered
520+
# AST extractor (unlike .r, which upstream now implements behind an
521+
# optional dependency and would instead warn "dependency is missing").
522+
(tmp_path / "a.tpl").write_text("class Foo {}\n", encoding="utf-8")
523+
(tmp_path / ".graphifyrc").write_text("language.tpl=.ets\n", encoding="utf-8")
521524
_quiet_extract([tmp_path / "a.tpl"], cache_root=tmp_path, root=tmp_path)
522525
assert "no AST extractor" in capsys.readouterr().err
523526

0 commit comments

Comments
 (0)