Skip to content

Remove test model default permissions#451

Merged
codingjoe merged 4 commits intocodingjoe:masterfrom
aabharya:test_model_permissions
Dec 19, 2025
Merged

Remove test model default permissions#451
codingjoe merged 4 commits intocodingjoe:masterfrom
aabharya:test_model_permissions

Conversation

@aabharya
Copy link
Copy Markdown
Contributor

Fixes #443

Added a new migration in db health check app to remove default permissions for testmodel, so they no longer appear in admin panel.

Copy link
Copy Markdown
Owner

@codingjoe codingjoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @aabharya 👋,

Thanks for reaching out!

Sure, why not? I don't see a reason to keep them.

I applied some changes to make sure the migrations are actually run in PyTest.

Cheers!
Joe

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Dec 19, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 92.85714% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 85.95%. Comparing base (1807ffe) to head (b961fa4).
⚠️ Report is 104 commits behind head on master.

Files with missing lines Patch % Lines
...heck/db/migrations/0002_alter_testmodel_options.py 92.30% 1 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #451      +/-   ##
==========================================
+ Coverage   76.92%   85.95%   +9.03%     
==========================================
  Files          40       63      +23     
  Lines         533     1965    +1432     
  Branches      110        0     -110     
==========================================
+ Hits          410     1689    +1279     
- Misses        115      276     +161     
+ Partials        8        0       -8     
Flag Coverage Δ
python-3.10-django-4.2 86.60% <92.85%> (?)
python-3.10-django-5.2 96.25% <92.85%> (?)
python-3.11-django-4.2 86.60% <92.85%> (?)
python-3.11-django-5.2 96.25% <92.85%> (?)
python-3.12-django-4.2 86.60% <92.85%> (?)
python-3.12-django-5.2 86.39% <92.85%> (?)
python-3.13-django-4.2 86.60% <92.85%> (?)
python-3.13-django-5.2 86.39% <92.85%> (?)
python-3.9-django-4.2 96.44% <92.85%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@codingjoe codingjoe merged commit 3e1a11a into codingjoe:master Dec 19, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove TestModel default permissions

3 participants