-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(backup): Add more thorough model coverage checks (#53298)
We've already introduce model coverage checks in a previous PR, but these only validated that every `__include_in_export = True`-marked model is exercised by at least one test in `tests/sentry/backup/test_models.py`. This change improves on that slightly, by only considering a model to be "tested" if the matching instance in the output has all of its fields set, and none of those fields are set to their default value (if they have one). This ensures that not only are we covering every exportable model, we are covering every field of every model. Issue: getsentry/team-ospo#156
- Loading branch information
1 parent
e38a27b
commit 30fda00
Showing
1 changed file
with
80 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters