Skip to content

Instantly share code, notes, and snippets.

@apahim
Created March 22, 2017 14:33
Show Gist options
  • Save apahim/ccecbca0b6b9284c3663e328a5f58870 to your computer and use it in GitHub Desktop.
Save apahim/ccecbca0b6b9284c3663e328a5f58870 to your computer and use it in GitHub Desktop.
import avocado
from external_lib import is_env_ok
class MyTest(avocado.Test):
@avocado.skipIf(is_env_ok())
def setUp(self):
pass
def test1(self):
pass
def test2(self):
pass
def test3(self):
pass
...
def test1000(self):
pass
def tearDown(self):
pass
@adereis
Copy link

adereis commented Mar 22, 2017

def setUp(self):
    if(is_env_ok()):
        self.cancel()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment