Skip to content

Tests: the house rules run through samebytes v0.3.0 (docs, source) - #5

Merged
loggger101 merged 1 commit into
mainfrom
samebytes-house-rules
Oct 26, 2026
Merged

loggger101 merged 1 commit into
mainfrom
samebytes-house-rules

Conversation

@loggger101

Copy link
Copy Markdown
Owner

tests/test_rules.py keeps the quiet-import, printed-ASCII, no-print-outside-the-CLI, version and README-anchor rules, now run through samebytes. samebytes is a test extra; the package's runtime dependencies are unchanged. The package-specific tests stay as written (cargo imports neither the catalog nor spacecost, lazy names, changelog, contract).

The rules now live in samebytes v0.3.0 (samebytes.docs, samebytes.source; loggger101/samebytes#4). That release replaces the five or six hand-written copies of each rule that the repositories in this family had kept, which had drifted apart.

  • test_import_creates_nothing merges into test_import_is_silent: quiet_import runs in an empty directory and fails if anything is created.
  • The anchor test now also checks the README's relative links.

Verified

  • Full suite: 94 passed, with samebytes v0.3.0.
  • Planted defects each FAILED a test: a print in release.py, a non-ASCII print in the CLI, a broken README anchor, and a print at import time.

The hand-written ASCII, docstring, import, quiet-import, printed-string,
link and structure checks become calls into samebytes.docs and
samebytes.source, the one copy the family shares, pinned as a test extra.
The package and its runtime dependencies are unchanged.
@loggger101
loggger101 merged commit ff1888b into main Oct 26, 2026
11 checks passed
@loggger101
loggger101 deleted the samebytes-house-rules branch October 29, 2026 16:10
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