Skip to content

test(minimal-workspace): cover the onboarding notebook and .scripts helpers#63

Merged
bjoaquinc merged 3 commits into
develfrom
test/scaffold-notebook-coverage
Jun 30, 2026
Merged

test(minimal-workspace): cover the onboarding notebook and .scripts helpers#63
bjoaquinc merged 3 commits into
develfrom
test/scaffold-notebook-coverage

Conversation

@bjoaquinc

Copy link
Copy Markdown
Collaborator

Overview

Follow-up to #62: adds the missing test coverage for the onboarding notebook scaffold and the .scripts/ helpers.

Changes

  • Tests for show_notebook.py / serve_headless.py — both require a job ref; show_notebook builds the …/notebooks/<ref>/show URL, honors DLTHUB_APP_URL, and errors without workspace_id — plus a guard that the scripts only reference a job the scaffold actually deploys.
  • Tests guarding the pre-built session snapshot: marimo_version matches the lock, no inlined anywidget data: URL, ships via copy_scaffold, and all shipped .py compile.
  • serve_headless.py now checks its arg before importing dlt_runtime (fail-fast, and testable without the runtime installed).

Tests

  • +11 unit tests (138 total). make scaffold-lock-check passes.

bjoaquinc and others added 2 commits June 30, 2026 10:42
…elpers

- tests for show_notebook/serve_headless (require a ref; show_notebook builds the show URL, honors DLTHUB_APP_URL, errors without workspace_id) and that scripts reference only a deployed job
- guard the session snapshot: marimo_version matches the lock, no inlined anywidget data: URL, ships via copy_scaffold, all shipped .py compile
- serve_headless checks its arg before importing dlt_runtime (fail-fast + testable without the runtime)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@bjoaquinc bjoaquinc force-pushed the test/scaffold-notebook-coverage branch from 6589f80 to 20d0625 Compare June 30, 2026 09:31
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@bjoaquinc bjoaquinc force-pushed the test/scaffold-notebook-coverage branch from 20d0625 to 2bef92c Compare June 30, 2026 09:42
@bjoaquinc bjoaquinc merged commit 30e1e3e into devel Jun 30, 2026
5 checks passed
@bjoaquinc bjoaquinc deleted the test/scaffold-notebook-coverage branch June 30, 2026 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant