fcm-django
fcm-django copied to clipboard
FCM_DJANGO_SETTINGS can't be overridden in tests
Django provide standard way to override settings with override_settings
decorator. Sadly this doesn't work for FCM_DJANGO_SETTINGS
.
Could anyone perhaps help us with a pull request?
Temporarily you can try this: https://stackoverflow.com/a/58726299
But the only solution for the package itself is to not use dictionary based settings. That'd require a new major version. Thing is; for many packages that have values that shouldn't exactly be overridden simply for tests (like this package or allauth's social providers), a temporary solution like the one provided in the SO link is good enough.