Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create test_views_example.py #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

nwekealex65
Copy link
Owner

--- What does this PR do ?

This PR implements automated test cases for the Dataset views and the Training views in the backend. It covers functionalities related to listing, retrieving, creating, updating, and deleting datasets and trainings.

The changes include the addition of test methods within the DatasetViewsTestCase class and the TrainingViewsTestCase class .Each test method corresponds to a specific view function and verifies its behavior under various scenarios.

The aim is to ensure that both Dataset and Training views work correctly and handle CRUD operations appropriately.

--- Consideration:

While developing these test cases, considerations were made to cover different scenarios such as:

Testing successful and unsuccessful responses for each view function. Verifying data integrity after CRUD operations.
Ensuring proper handling of edge cases and invalid input.

--- How to test ?

To test the implemented functionalities:

Ensure that the backend environment is set up with the necessary dependencies and configurations. Run the automated test [python3 manage.py tests]
The PR also includes code formatting using the Black formatter to maintain consistency and readability throughout the codebase.

--- What does this PR do ?

This PR implements automated test cases for the Dataset views and the Training views in the backend. It covers functionalities related to listing, retrieving, creating, updating, and deleting datasets and trainings.

The changes include the addition of test methods within the DatasetViewsTestCase class and the TrainingViewsTestCase class .Each test method corresponds to a specific view function and verifies its behavior under various scenarios.

The aim is to ensure that both Dataset and Training views work correctly and handle CRUD operations appropriately.

--- Consideration:

While developing these test cases, considerations were made to cover different scenarios such as:

Testing successful and unsuccessful responses for each view function.
Verifying data integrity after CRUD operations.
Ensuring proper handling of edge cases and invalid input.

--- How to test ?

To test the implemented functionalities:

Ensure that the backend environment is set up with the necessary dependencies and configurations.
Run the automated test [python3 manage.py tests]
The PR also includes code formatting using the Black formatter to maintain consistency and readability throughout the codebase.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant