feat(auth): Add auth emulator support via the FIREBASE_AUTH_EMULATOR_HOST environment variable. by muru · Pull Request #531 · firebase/firebase-admin-python
hiranya911
changed the title
Add auth emulator support via the FIREBASE_AUTH_EMULATOR_HOST environment variable.
feat(auth): Add auth emulator support via the FIREBASE_AUTH_EMULATOR_HOST environment variable.
To minimize modification of tests, the app fixture and instrumentation have been modified to use a global dict of URLs, which are then monkey-patched based on fixture parameters. Essentially, all tests using the app fixture are run twice, once with the emulated endpoint and once without.
Where possible, tests are modified to account for the current behaviour in emulator mode (e.g., invalid or expired tokens or cookies still work). Fixtures were changed to function scope to avoid problems caused by overlap when some fixtures being in emulator mode and some in normal mode concurrently.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters