anitab-org / anitab-org/anitab-forms-backend

tests: Add test for views of token_auth

オープン
#63 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る
Category: Quality Assurance Hacktoberfest Status: Available Type: Testing
主要言語
Python
スター
17
フォーク
60
PR マージ指標
30日以内にマージされた PR はありません

説明

### Is your feature request related to a problem? Please describe.
Add test code for the views in token_auth to test all the views in the token_auth app.

### Describe the solution you'd like
- [ ] Create new files with the name `test_view_register.py` and `test_view_tokens.py` inside `tests\`.
- [ ] In `test_view_register.py` add tests for RegisterView.
- [ ] In `test_view_tokens.py` add tests for TokenObtainPairView, TokenRefreshView, TokenGenerator (For details see `urls.py`).
__NOTE__: Use Django defaults unit tests.

### Definition of Done
- [ ] All of the required items are completed.
- [x] Approval by 1 mentor.

### Additional context
* See this for writing tests [resource 1](https://www.django-rest-framework.org/api-guide/testing/) and [resource 2](https://docs.djangoproject.com/en/3.1/topics/testing/tools/)

### Estimation
4 hours

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。