Add unit tests and gate PR/deploy on them (#1) #22

Merged
westfarn merged 1 commits from ticket-1-unittests into master 2026-07-14 03:48:02 -07:00
Owner

Summary

Closes #1.

  • Adds real Django unit tests in schasite/tests.py (public pages, membership form + form validation, model helpers, calendar helpers, Stripe endpoints with mocks, auth/login_required behavior).
  • Includes the dockerize + Gitea Actions CI/CD base so PRs run tests and deploy only after Unit Tests succeed on a master push (company_site pattern).

Test plan

  • DJANGO_ENV=dev DJANGO_SECRET_KEY=test-secret-key uv run python manage.py test schasite — 30 tests OK
  • Open this PR and confirm Unit Tests / CI workflows run on the self-hosted runner
  • After merge to master, confirm Unit Tests run on push and deploy only proceeds when they pass
## Summary Closes #1. - Adds real Django unit tests in `schasite/tests.py` (public pages, membership form + form validation, model helpers, calendar helpers, Stripe endpoints with mocks, auth/login_required behavior). - Includes the dockerize + Gitea Actions CI/CD base so PRs run tests and deploy only after Unit Tests succeed on a `master` push (company_site pattern). ## Test plan - [x] `DJANGO_ENV=dev DJANGO_SECRET_KEY=test-secret-key uv run python manage.py test schasite` — 30 tests OK - [ ] Open this PR and confirm Unit Tests / CI workflows run on the self-hosted runner - [ ] After merge to `master`, confirm Unit Tests run on push and deploy only proceeds when they pass
westfarn added 1 commit 2026-07-14 03:47:51 -07:00
Add Django unit tests for public pages, forms, models, Stripe, and auth.
CI / test (pull_request) Successful in 3s
Unit Tests / test (pull_request) Successful in 3s
3999b007a5
Gives CI/deploy workflows something real to run so PRs and master pushes are gated on coverage of core schasite behavior.
westfarn force-pushed ticket-1-unittests from 9d3159027e to 3999b007a5 2026-07-14 03:47:51 -07:00 Compare
westfarn merged commit b3fa2272c8 into master 2026-07-14 03:48:02 -07:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ai_ml_operations/scha#22