Add unit tests for hash_password and verify_password
Débutant
help wantedgood first issueopen-to-contributors
3 ★
Poids du clone moyen
Mise à jour
Description
## Description
Add unit tests for the `hash_password` and `verify_password` functions.
The tests should be added to:
**`tests/unit/test_user.py`**
## Acceptance criteria
- Confirm that `hash_password()` does not return the original plaintext password.
- Confirm that hashing the same password twice produces different hashes.
- Confirm that `verify_password()` returns `True` for the correct password.
- Confirm that `verify_password()` returns `False` for an incorrect password.
- Do not use the database or make HTTP requests.
- All relevant tests must pass locally and in GitHub Actions.
## Contribution notes
Please comment on this issue before starting work.
Keep the pull request limited to this issue and follow `CONTRIBUTING.md`.
Issues similaires
Tout voir
Python
Débutant
VS Code extension should be robust to YAML parser errors
Seeing this error: ``` Failed to read calkit.yaml: YAMLParseError: A block sequence may not be used as an im…
Mise à jour
Python
Débutant
dash: a manual Refresh control
The dashboard polls: `refreshStats()` (`src/doberman/dash/app.py:408`) every 5 s and `refreshPending()` (`:54…
Mise à jour
Python
Débutant
dash: "Copy details" button on each pending-approval card
Each pending-approval card in the dashboard (`renderPending`, `src/doberman/dash/app.py:448-544`) shows the r…
Mise à jour