Skip to content
This repository was archived by the owner on Aug 19, 2019. It is now read-only.
This repository was archived by the owner on Aug 19, 2019. It is now read-only.

[Feature] Write unit tests for all the APIs #16

@pbteja1998

Description

@pbteja1998
  • Write Unit Tests to test the APIs that are implemented.
  • There are 4 django apps in the application as of now.
    • coderplex_apis
    • authentication
    • member
    • books

Outline of tests to be implemented

  • Test / - test_hello_world
  • Test /callback - test_user_can_fetch_code_from_github (GITHUB Code)
  • Test /v1/auth/github - test_user_can_signup_through_github (GITHUB Signup)
  • Test v1/auth/github - test_user_can_login_through_github_and_get_access_token (GITHUB Login)
  • Test /callback - test_user_can_fetch_code_from_linkedin (LINKEDIN Code)
  • Test /v1/auth/linkedin - test_user_can_signup_through_linkedin (LINKEDIN Signup)
  • Test /v1/auth/linkedin - test_user_can_login_through_linkedin_and_get_access_token (LINKEDIN Login)
  • Test /user - test_user_can_get_his_basic_details_after_logging_in (FETCH User)
  • Test /user - test_user_can_update_his_basic_details_after_logging_in (EDIT User)
  • Test /user/profile - test_user_can_get_his_profile_after_logging_in (FETCH User Profile)
  • Test /user/profile - test_user_can_update_his_profile_after_logging_in (EDIT User Profile)
  • Test /books - test_fetch_list_of_books
  • Test /book/<slug> - test_fetch_details_of_book
  • Test /chapters - test_fetch_list_of_chapters

Notes:

  • Try to implement the tests in the order mentioned above.
  • More details regarding the API endpoints can be found here
  • The code in which all the above end points are implemented is in develop branch.
  • Send Pull Requests with base as coderplex:develop
  • For now, write all the tests in the tests.py file of the respective app.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions