Skip to content

Executable scenarios

Generated from marked native pytest cases and their Given/When/Then docstrings. Five named behaviors (seven collected cases), not exhaustive library coverage. Unspecified behavior has no coverage claim. Skipped and untested cases are not passes.

Installed and rebuilt provenance — test_built_wheel_and_source_archive_retain_provenance

Result: passed

Test: tests/test_artifacts.py::test_built_wheel_and_source_archive_retain_provenance

Given a tagged consumer library built into a wheel and source archive.
When the wheel is imported without Git and the source archive is rebuilt.
Then both retain the original consumer identity and repeated dirty builds agree.

Distinct installed consumers — test_two_installed_consumers_keep_distinct_build_identity

Result: passed

Test: tests/test_artifacts.py::test_two_installed_consumers_keep_distinct_build_identity

Given two independently tagged consumers built with this library.
When their installed wheel files report identity without Git.
Then each reports its own release rather than the library or caller identity.

Release and development identity — test_clean_release_and_branch_ahead

Result: passed

Test: tests/test_versioning.py::test_clean_release_and_branch_ahead

Given a clean tagged consumer checkout.
When the consumer adds a commit and publishes an approved tracking ref.
Then the release displays 1.4.0 and development identifies distance and commit.

Live dirty checkout — test_live_dirty_state_without_reinstall[tracked]

Result: passed

Test: tests/test_versioning.py::test_live_dirty_state_without_reinstall[tracked]

Given an editable consumer at a clean release.
When a tracked, staged, or untracked file changes.
Then current_version reports dirty state without reinstalling.

Live dirty checkout — test_live_dirty_state_without_reinstall[staged]

Result: passed

Test: tests/test_versioning.py::test_live_dirty_state_without_reinstall[staged]

Given an editable consumer at a clean release.
When a tracked, staged, or untracked file changes.
Then current_version reports dirty state without reinstalling.

Live dirty checkout — test_live_dirty_state_without_reinstall[untracked]

Result: passed

Test: tests/test_versioning.py::test_live_dirty_state_without_reinstall[untracked]

Given an editable consumer at a clean release.
When a tracked, staged, or untracked file changes.
Then current_version reports dirty state without reinstalling.

Private branch protection — test_detached_and_private_origin_do_not_expose_branch

Result: passed

Test: tests/test_versioning.py::test_detached_and_private_origin_do_not_expose_branch

Given a consumer with a private origin and a tracking ref.
When identity is requested on a branch and detached HEAD.
Then private names remain local or detached.

Raw outcomes | Measured software line coverage


Documentation home · Source · Help / report an issue · License

Docs: release v1.0.56 · 4ee7bf099698. Source revision: 4ee7bf099698bb5f8f5f0d6e0d0d020c1d7927c0 (dirty checkout: false). Version and source.