chore: Convert environments models TestCase to normal function
Thanks for submitting a PR! Please check the boxes below:
- [x] I have run
pre-committo check linting - [x] I have added information to
docs/if required so people know about the feature! - [x] I have filled in the "Changes" section below?
- [x] I have filled in the "How did you test this code" section below?
- [x] I have used a Conventional Commit title for this Pull Request
Changes
I'm working through re-writing the TestCase classes into normal test functions. Rewrote the existing TestCase and replaced with fixtures instead of recreating everything. There are other PRs that are similar to this one.
How did you test this code?
I manually changed the tests one at a time to refactor them as I went then ran the full test suite afterwards.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Feb 28, 2024 7:54pm |
| flagsmith-frontend-preview | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Feb 28, 2024 7:54pm |
| flagsmith-frontend-staging | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Feb 28, 2024 7:54pm |
Uffizzi Preview deployment-47480 was deleted.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 95.85%. Comparing base (
02c59d2) to head (d20b424). Report is 2 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #3442 +/- ##
==========================================
- Coverage 95.86% 95.85% -0.01%
==========================================
Files 1097 1097
Lines 34136 34117 -19
==========================================
- Hits 32723 32704 -19
Misses 1413 1413
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.