iyanuashiri/meethub

test: Add unit tests for SignUpForm

開放

#37 建立於 2025年7月12日

 (3 則留言) (0 個反應) (1 位負責人)JavaScript (56 個分叉)auto 404
good first issuetest

倉庫指標

星標
 (464 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

The meethub/accounts/forms.py file contains the SignUpForm, but there are no tests for it in meethub/accounts/tests/test_forms.py. We need to add tests to ensure it validates data correctly and creates a user and profile upon saving

Acceptance Criteria:

  1. Create meethub/accounts/tests/test_forms.py.
  2. Add tests for valid form data.
  3. Add tests for invalid data (e.g., mismatched passwords, existing email).
  4. Test that the save() method correctly creates an Account and a Profile.

貢獻者指南