• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tschm / pytest-alembic / 33149187912
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: fix/lazy-asyncio-import
DEFAULT BRANCH: main
Ran 28 Aug 2026 06:49AM UTC
Jobs 1
Files 17
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Aug 2026 06:28AM UTC coverage: 100.0%. Remained the same
33149187912

push

github

tschm
docs: record why MigrationContext is one class, not two.

`runner.py` is the largest module in the package (521 lines) and has the highest
in-degree in the import graph, and `MigrationContext` holds both the migration verbs and
the history/state accessors. Read as a class in isolation that is two responsibilities
and an obvious split, which is why it keeps being raised.

It is one class because it is the documented public surface -- the object `alembic_runner`
yields, and the receiver of every call in every documented example -- so a split is an
API break rather than a refactor, and the metrics give no reason to want one (no block
above `B`, maintainability index `A`). This records that, and points a future split at
delegation behind the existing public names.

Comment rather than docstring deliberately: the audience is the next person to propose
the split, not the user reading the rendered API page.

Closes #249.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

196 of 196 branches covered (100.0%)

Branch coverage included in aggregate %.

885 of 885 relevant lines covered (100.0%)

7.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run- - 33149187912.1 28 Aug 2026 06:50AM UTC 17
100.0
GitHub Action Run
Source Files on build 33149187912
  • Tree
  • List 17
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • c2cb0dfc on github
  • Prev Build on main (#33140207928)
  • Next Build on docs/migration-context-size-note (#33181221053)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc