nofusscomputing / nofusscomputing/centurion_erp

Add Missing ViewSet Test Cases

Open
#697 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

task::test type::task
Dominant language
Python
Stars
1
Forks
1
Avg merge
2h 18m
Merged PRs (30d)
8

Description

ViewSet Test Cases were written and refactored in #672. during work on this it was discovered that some objects were not tested.

Details

Within the test suits file `` every where there is a line # ToDo: <object name> Add a test case for the object in question.

Tasks

Test cases are missing for the following objects

  • back_url

  • metadata_markdown

  • _model_documentation

  • model_documentation

  • page_layout

  • table_fields

  • get_back_url

  • get_model_documentation

  • get_page_layout

  • get_return_url

  • get_table_fields

  • get_view_description

  • get_view_name

  • queryset

  • serializer_class

  • view_serializer_name

    • ViewSets
      • test each of the view functions. i.e. create, list, get etc
        • status 200
        • status 201
        • status 400
        • status 401
        • status 403
        • status 500
          • this stus must also be logged

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the ViewSet test refactor referenced in #672 and locate the test suite containing the listed # ToDo markers. Add coverage for each named object and the ViewSet functions, including the requested HTTP statuses; verify that status 500 cases are also logged.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
backend, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.