Skip to content

Finish organization testing routes #76

@bryanwong8

Description

@bryanwong8

Is your feature request related to a problem? Please describe.
We need to finish the testing routes for organizations

Describe the solution you'd like:
Create the testing routes for:

  • update_organization
  • delete_organization
  • follow_organization
  • unfollow_organization
  • show_all_members_mods
  • promote_member
  • remove_member
  • submit_article_for_review
  • reviewed_article

Models
None

Schemas
None

API Routes
None

Endpoints HTTP Method Description Tested

Create/Edit Functions

Edit the backend/tests/test_organizations.py file to make the test cases

  • In the backend/conduit/organizations/views.py file make test functions for the following routes:
  • You should reference the examples in backend/tests/test_articles.py, backend/tests/test_tags.py and other test files to help you create the test functions
  • update_organization
  • delete_organization
  • show_all_members_mods

In the backend/tests/test_models.py file make the following test the Organization class functions:

  • You should be creating a new class called OrganizationTest and should reference the other testing functions to help you create the test functions.
  • add_moderator
  • add_member
  • remove_member
  • update_slug
  • is_member
  • moderator
  • promote
  • request_review
  • remove_review_status

Additional context

Metadata

Metadata

Assignees

Labels

backendThis is a backend issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions