arrow_backRetour aux issues
aissa-laribi/StudyQuiz
#118
Débutant
Ouvrirarrow_forward
Débutant
Ouvrirarrow_forward
Débutant
Ouvrirarrow_forward
Add unit tests for hash_password and verify_password
ecoDébutant
help wanted
good first issue
open-to-contributors
descriptionDescription
## 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
calkit/calkit
star53
Poids du dépôt moyen
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 implicit map…
Python
bug
good first issue
fu351/Doberman-Core
star211
Poids du dépôt léger
dash: a manual Refresh control
The dashboard polls: `refreshStats()` (`src/doberman/dash/app.py:408`) every 5 s and `refreshPending()` (`:546`) every …
Python
enhancement
good first issue
fu351/Doberman-Core
star211
Poids du dépôt léger
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 risk badge,…
Python
enhancement
good first issue