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.

贡献者指南