I have a nose test that uses a pathname to a png file in the tests directory. One path works in local testing, one path works on Travis. How do I check when the code is run on Travis?
Edit: Here is the actual code.
To check the existence of TRAVIS:
import os
is_travis = 'TRAVIS' in os.environ
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With