mirror of
https://github.com/Glitchy-Sheep/boosty-downloader.git
synced 2026-10-14 21:33:23 +00:00
[PR #153] [MERGED] [tests] Add coverage tooling and pytest config #159
Labels
No labels
api-drift
bug
ci
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Glitchy-Sheep/boosty-downloader#159
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Glitchy-Sheep/boosty-downloader/pull/153
Author: @Glitchy-Sheep
Created: 8/15/2026
Status: ✅ Merged
Merged: 8/16/2026
Merged by: @Glitchy-Sheep
Base:
main← Head:test/pytest-infra📝 Commits (1)
881af48test: Add coverage tooling and pytest config📊 Changes
11 files changed (+176 additions, -47 deletions)
View changed files
📝
Taskfile.yml(+5 -0)📝
pyproject.toml(+17 -0)📝
test/integration/boosty_api/boosty_api_test.py(+0 -5)📝
test/integration/flows/full_parse_flow_test.py(+0 -3)📝
test/unit/boosty_api/client_test.py(+0 -13)📝
test/unit/file_downloader/extension_guessing_test.py(+2 -4)📝
test/unit/html_generator/html_templates_test.py(+2 -4)📝
test/unit/use_cases/check_total_posts_test.py(+0 -3)📝
test/unit/use_cases/download_all_posts_test.py(+0 -9)📝
test/unit/use_cases/download_specific_post_test.py(+1 -6)📝
uv.lock(+149 -0)📄 Description
[tests] Add coverage tooling and pytest config
Summary
First PR of the test safety-net stage: before restructuring the code we need to see what the tests actually cover and make writing new ones cheap. This adds the tooling only - the missing test categories (cache, filters, golden files, e2e) come in follow-up PRs.
Problem
[tool.pytest.ini_options]: every async test carries a manual@pytest.mark.asyncio, and barepyteststumbles over integration tests that need live credentialstest_output.htmlinto the repo root - an interrupted run leaves garbage behindFix
pytest-covin dev deps +task test:cov: unit tests with a coverage report, uncovered lines listed (baseline today: 69% total, the post cache is the worst spot at 31-43%)asyncio_mode = "auto": async tests run under asyncio without a mark - 34 manual marks removedtestpaths = ["test/unit"]: barepytestruns only unit tests;task test:apikeeps working, its explicit path overrides testpaths-ra --strict-markers: skip/xfail reasons show up in the summary, a typo in a mark fails instead of silently deactivating a testtmp_pathVerification
task cigreen: lint, format, pyright, 129 unit tests, buildtask test:covproduces the report (TOTAL 69%)pytest --collect-only test/integration- all 6 integration tests still collect under auto mode (running them needs live credentials, not part of CI)Notes
ci/skip-changelog)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.