-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
bugSomething isn't workingSomething isn't workingmicroservicerelated to the microservicerelated to the microservicetestingassociated to testingassociated to testing
Description
Found a testing bug locally.
Pytest is no longer finding our api key locally after updating our setup to use a .env file to hide our api key in.
Pytest wont run the tests locally without hardcoding the api key into our authenticator.
All tests are still passing travis ci and they pass locally if you hard code that api key in there.
If you place an "import code; code.interact(local=dict(globals(), **locals()))" above line 10 in our tone_analyzer_service.py, and assign a variable to "os.getenv('TONE_ANALYZER_API_KEY')" above that, you can see that the api key is available here, leading me to believe that pytest and the IAMAuthenticator do not get along.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingmicroservicerelated to the microservicerelated to the microservicetestingassociated to testingassociated to testing