diff options
| author | Craig Jennings <c@cjennings.net> | 2026-04-30 10:30:32 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-04-30 10:30:32 -0500 |
| commit | 73f4e98dceee4301b8962b202a126d0c8e132db8 (patch) | |
| tree | 4e94728697837b30ed486db759e85436232c2cb1 /tests/test-prog-python--format-wiring.el | |
| parent | 0d82e91894d8c9d08ec390219ed4cd19c0f5cfd1 (diff) | |
| download | dotemacs-73f4e98dceee4301b8962b202a126d0c8e132db8.tar.gz dotemacs-73f4e98dceee4301b8962b202a126d0c8e132db8.zip | |
test(prog): drop ignore-errors on prog-module require, add featurep check
Two small tightening passes on the formatter wiring tests just shipped.
Drops `(ignore-errors ...)` from each test file's
`(require 'prog-PKG)' call. Soft use-package warnings (e.g. lsp-pyright
not being installed) still emit messages without aborting the load. A
hard load failure (syntax error, missing required dep) would now
surface as a test error rather than being silently swallowed.
Adds a `(should (featurep PKG))' assertion per language so the test
output makes "package loaded" visible alongside the fboundp and
binding checks. For webdev the assertion is `(featurep 'prog-webdev)'
since the formatter command is defined directly in prog-webdev.el
(it shells out to the prettier CLI, no separate package to load).
17 tests total now (up from 13), all passing.
Diffstat (limited to 'tests/test-prog-python--format-wiring.el')
| -rw-r--r-- | tests/test-prog-python--format-wiring.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test-prog-python--format-wiring.el b/tests/test-prog-python--format-wiring.el index 67c18dd11..b017b26bd 100644 --- a/tests/test-prog-python--format-wiring.el +++ b/tests/test-prog-python--format-wiring.el @@ -18,10 +18,14 @@ ;; use-package's `:bind (:map ...)' defers until the named map exists. ;; Loading python.el populates `python-ts-mode-map'; loading blacken ;; resolves the binding form's late-binding hook. -(ignore-errors (require 'prog-python)) +(require 'prog-python) (require 'python) (require 'blacken) +(ert-deftest test-prog-python-format-package-loaded () + "Normal: `blacken' is in `features' after the prog-python config loads." + (should (featurep 'blacken))) + (ert-deftest test-prog-python-format-command-fboundp () "Normal: `blacken-buffer' is fboundp after the package is loaded." (should (fboundp 'blacken-buffer))) |
