Darshan Patil
Darshan Patil

Reputation: 9

Travis CI Environment Variables Not Being Used in tests

I have set up my credentials (username/password) as environment variables in Travis CI. In my code, I am using the following snippet to retrieve these environment variables:

username = os.environ.get("HITRAN_USERNAME") or input("Enter HITRAN username: ")password = os.environ.get("HITRAN_PASSWORD") or getpass("Enter HITRAN password: ")

However, my tests are still prompting for credential input. How can I ensure that Travis CI correctly uses the environment variables? What might I be doing wrong?

I tried pulling env variables in the test, that didnt work aswell

Upvotes: 0

Views: 29

Answers (0)

Related Questions