Commit Graph
16 Commits
Author SHA1 Message Date
westfarn c9ff71bce5 Fix/ci isolated test db (#25)
Unit Tests / test (push) Successful in 3s
Reviewed-on: #25
2026-07-14 05:07:55 -07:00
westfarn b3fa2272c8 Add unit tests and gate PR/deploy on them (#1) (#22)
Unit Tests / test (push) Successful in 3s
## 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

Reviewed-on: #22
2026-07-14 03:48:01 -07:00
westfarn 5acddd37e2 Fix WhiteNoise crash from missing CSS background GIFs (#23)
Unit Tests / test (push) Successful in 4s
## Summary
- Remove unused `.top-head` / `.top-body` CSS rules that referenced missing GIF files (`top-head.gif`, `top-body.gif`), which caused `whitenoise.storage.MissingFileError` and crashed the prod container at collectstatic/startup.
- Drop a stray `{% load static %}` tag from `style.css` (not a Django template).
- Branch rebased onto current `master` (dockerize already merged via #21); this PR is the CSS-only fix.

## Test plan
- [ ] Merge and let deploy run (or redeploy scha prod).
- [ ] Confirm web container stays up (no WhiteNoise `MissingFileError`).
- [ ] Spot-check site CSS still looks fine on public pages.
- [ ] Separately: if Compose still warns about unset `$…` vars, escape `$` as `$$` in `~/Documents/secrets/scha/scha_prod.env` password/`DATABASE_URL`.

Reviewed-on: #23
2026-07-14 03:32:28 -07:00
westfarn b97d5ac792 removed the address and updated the logging 2025-09-08 20:51:09 -05:00
westfarn fc64549c00 Allow for multiple entries on the scha board for positions 2025-09-08 13:07:56 -05:00
westfarn b9964b22a9 Updates with a sign in page 2025-04-25 10:12:16 -05:00
westfarn 5bd7a37e52 Added telemetry 2025-04-23 09:41:05 -05:00
westfarn 627bff8074 Prod live updates 2025-04-23 09:33:58 -05:00
westfarn 992750dc55 updates to the officer page 2025-04-22 11:51:15 -05:00
westfarn 0e1ddbcf1a Updates to the main page 2025-04-22 11:46:55 -05:00
westfarn 4c0605474c more frontend updates. Added membership only area in debug mode 2025-04-21 10:13:01 -05:00
westfarn 77ccc5c2fe added site tracking and updated urls 2025-04-21 06:27:34 -05:00
westfarn 636cf3d45d Added assets and fixed the membership form 2025-04-18 10:48:41 -05:00
westfarn b1e372ff9d Added assets to the about us page 2025-04-17 11:15:52 -05:00
westfarn b9aee578c3 redesign proto 2025-04-15 12:18:03 -05:00
westfarn cdbbea7711 inital check in 2025-03-07 12:15:48 -06:00