nofusscomputing / nofusscomputing/centurion_erp
Add Missing ViewSet Test Cases
Nobody has claimed this yet.
- 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
- test each of the view functions. i.e. create, list, get etc
- ViewSets
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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