testapp
tests to use djangorestframework to test the package programmatically and visually
#2
Labels
enhancement
New feature or request
Related software versions
All
Description
If the
testapp
has a dummy app, with a test model, exposed via DRF, perhaps we could write some better integration tests by attempting to create a new token from the UI and then calling the API, expecting a 200 response with a controlled body.This should be a
testapp
only dependency, just to make it more realistic to work with.As of now, I could test the Django admin view but that's redundant and insufficient. Writing a test that installs
drf
, creates an app, exposed a module, bla bla bla seems quite cumbersome.But I am not sure if this setup is desired or any good, so I'm open to alternatives. Maybe @fopina you have a better idea?
Use cases
As a dev, I want to write tests so that they provide sufficient coverage when merging changes.
References
No response
The text was updated successfully, but these errors were encountered: