What's the difference between override_settings()
and modify_settings()
? It seems redundant. The docs say:
It can prove unwieldy to redefine settings that contain a list of values. In practice, adding or removing values is often sufficient. The
modify_settings()
context manager makes it easy:
Couldn't override_settings()
just be written to handle settings that contain a list of values?
Aucun commentaire:
Enregistrer un commentaire