Skip certain tests in python (nosetests)

python

#1

How can I skip certain tests on the CI, while running them locally?

right now I am using CI environmental variable as a trigger within the test:

``python

class Test_Picaso(unittest.TestCase):
’’‘test indexing subpackage’’’

def test_Visuals(self):
	from ..picaso import Visuals
	if 'CI' not in os.environ.keys():
    	sid = 1273321
    	Sale1 = Visuals(eid=sid)
    	self.assertTrue(isinstance(Sale1.to_row(),dict))

    else:
    	pass
but this approach really smells, so I assume there should be a better way...

#2