Skip to content

Add pytest test suite with CI and coverage#6

Merged
GeiserX merged 1 commit intomainfrom
feat/add-tests
Apr 11, 2026
Merged

Add pytest test suite with CI and coverage#6
GeiserX merged 1 commit intomainfrom
feat/add-tests

Conversation

@GeiserX
Copy link
Copy Markdown
Owner

@GeiserX GeiserX commented Apr 11, 2026

Summary

  • Add 12 pytest tests covering media info JSON extraction, SQLite database setup and state tracking, URL filename parsing with encoding, and publication URL generation logic
  • Add GitHub Actions workflow (.github/workflows/tests.yml) running pytest with codecov upload
  • Add requirements-test.txt with pytest, pytest-cov, and requests
  • Add codecov badge to README

Test plan

  • Verify all 12 tests pass in CI
  • Confirm codecov badge renders after first CI run

- 12 tests covering media info extraction, database setup/state,
  URL filename parsing, and publication URL generation logic
- GitHub Actions workflow running pytest with codecov upload
- Codecov badge in README
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 11, 2026

Warning

Rate limit exceeded

@GeiserX has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 10 minutes and 59 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 10 minutes and 59 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: f83d5dd5-f4a8-406d-ab03-c6bb18848639

📥 Commits

Reviewing files that changed from the base of the PR and between a4073b3 and 3a50644.

📒 Files selected for processing (5)
  • .github/workflows/tests.yml
  • README.md
  • requirements-test.txt
  • tests/__init__.py
  • tests/test_media_download.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/add-tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@GeiserX GeiserX merged commit 6c20f3d into main Apr 11, 2026
3 checks passed
@GeiserX GeiserX deleted the feat/add-tests branch April 11, 2026 13:32
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