I have a couple of tests which I'd like to run on my local machine, but not on CI.
I'm using pytest, how do I go about this?
I could test to see that there's a particular environment key, and only run the test if it's present, something like:
def test_something():
if 'key' in os.environ:
< do test stuff >
I feel as though there's probably a better approach though, perhaps using some pytest method / decorator that I'm unaware of.