Azure / Azure/azure-sdk-for-python
`AZURE_TEST_RUN_LIVE` needs to be set outside of `.env` during local testing
- Lingua principale
- Python
- Stelle
- 5.6k
- Fork
- 3.4k
- Merge medio
- 2g 2h
- PR unite (30g)
- 213
Descrizione
I'm invoking tests locally. I have a `.env` defined. I defined `AZURE_TESTS_RUN_LIVE=true` within that `.env`. I am still getting `playback cannot find recording file` when it should be attempting **record** instead of default to playback.
If I set `AZURE_TESTS_RUN_LIVE` in environment, THEN run, the tests successfully go to `record` mode. We should be able to handle it when a `.env` exists and the user sets `AZURE_TESTS_RUN_LIVE` within only the `.env`.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia tracciando il modo in cui i test locali caricano le variabili d’ambiente e scelgono tra la modalità di riproduzione e quella di registrazione, quindi riproduci il problema con AZURE_TESTS_RUN_LIVE impostato solo in .env. Il lavoro è completato quando i test locali selezionano la modalità di registrazione in quel caso e l’errore di riproduzione esistente non si verifica più.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- testing
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 50/100