Skip to content

Testing Coverage #5

@Jonathan-M-Wilson

Description

@Jonathan-M-Wilson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmicroservicerelated to the microservicetestingassociated to testing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions