HTTP-APIs / hydrus

REST server - Flask Hydra-powered for Semantic Web
https://pypi.org/project/hydrus/
MIT License
195 stars 130 forks source link

Add tests for PUT/DELETE request for multiple Class objects in test_app.py #586

Closed farazkhanfk7 closed 3 years ago

farazkhanfk7 commented 3 years ago

I'm submitting a

Current Behaviour:

Currently, we don’t have any tests for PUT/DELETE request for multiple Class objects in test_app.py. We do have some tests in test_crud.py, but we’re directly using functions from crud.py to test the behaviour and not making requests to the endpoints to check status codes.

Expected Behaviour:

We can add some tests in test_app.py as well to improve test_coverage and test the functioning of routes using test_app_client and checking the correct status code for every response.

Steps to reproduce:

Snapshot:

Environment:

* python version * pip version * OS details ### Do you want to work on this issue?