Skip to content

Commit

Permalink
solve bug with override_settings_factory
Browse files Browse the repository at this point in the history
  • Loading branch information
ychiucco committed Feb 4, 2025
1 parent 0cb23c3 commit a0741c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/fixtures_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def override_settings_factory():

def _overrride_settings_factory(**kwargs):
# NOTE: extract patched settings *before* popping out the patch!
settings = Settings(**Inject(get_settings).dict())
settings = Settings(**Inject(get_settings).dict(exclude_unset=True))
get_settings_orig.append(Inject.pop(get_settings))
for k, v in kwargs.items():
setattr(settings, k, v)
Expand Down

0 comments on commit a0741c3

Please sign in to comment.