documentlanguagemodel Public
| 1 | """Direct coverage for the `python -m dlm` entrypoint.""" |
| 2 | |
| 3 | from __future__ import annotations |
| 4 | |
| 5 | import runpy |
| 6 | |
| 7 | |
| 8 | def test_module_entrypoint_invokes_cli_main(monkeypatch) -> None: |
| 9 | called: list[bool] = [] |
| 10 | |
| 11 | monkeypatch.setattr("dlm.cli.app.main", lambda: called.append(True)) |
| 12 | |
| 13 | runpy.run_module("dlm", run_name="__main__") |
| 14 | |
| 15 | assert called == [True] |