scailable / sclblpy

Python package for Scailable uploads
MIT License
19 stars 1 forks source link

Tests should not automatically remove endpoints #9

Closed MKaptein closed 4 years ago

MKaptein commented 4 years ago

Although it is good practice for tests to remove all the resources they created, the default tests should not delete all the endpoints created by a specific user. Remove the delete loops from all tests.

MKaptein commented 4 years ago

Make sure to login using a test user; that way we can just delete everything.

MKaptein commented 4 years ago

All the tests of the package now, at the top of their respective files, contain "settings"; the default is to not run any tests at all (to prevent unintentional use of the tests). No tests automatically delete any endpoints, and the test_all_models.py specifically prompts the user before remove any endpoints.