Skip to content

fix(mail): resolve identity env file path at call time - #680

Open
dlrsp-dev wants to merge 2 commits into
mainfrom
fix/mail-identity-env-default
Open

fix(mail): resolve identity env file path at call time#680
dlrsp-dev wants to merge 2 commits into
mainfrom
fix/mail-identity-env-default

Conversation

@dlrsp-dev

Copy link
Copy Markdown
Member

Summary

  • Resolve the mail-identity env file path at call time so tests and hosts can override _DEFAULT_ENV_FILE.
  • Stops CI matrix failures where apply_mail_identity_defaults ignored the fixture file and produced [app][unknown]….

Test plan

  • Local assert with monkeypatched _DEFAULT_ENV_FILE
  • CI tox matrix on this PR

dlrsp-dev and others added 2 commits September 7, 2026 00:54
Default env_file was bound at import, so monkeypatched paths and CI hosts never saw the identity file and fell back to unknown+hostname.
@codecov

codecov Bot commented Sep 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.50%. Comparing base (f871d51) to head (c5f44ee).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #680      +/-   ##
==========================================
+ Coverage   90.75%   97.50%   +6.74%     
==========================================
  Files           6        6              
  Lines         119      120       +1     
  Branches        9        9              
==========================================
+ Hits          108      117       +9     
+ Misses          7        1       -6     
+ Partials        4        2       -2     
Flag Coverage Δ
py310-django42 97.50% <100.00%> (+6.74%) ⬆️
py310-django52 97.50% <100.00%> (+6.74%) ⬆️
py311-django42 97.50% <100.00%> (+6.74%) ⬆️
py311-django52 97.50% <100.00%> (+6.74%) ⬆️
py312-django42 97.50% <100.00%> (+6.74%) ⬆️
py312-django52 97.50% <100.00%> (+6.74%) ⬆️
py313-django52 97.50% <100.00%> (+6.74%) ⬆️
py314-django52 97.50% <100.00%> (+6.74%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant