vendredi 1 juillet 2016

How do I get pytest to run all functions as test

I have looked around and I can't find a pytest.ini flag to pass in that says the equivalent of

def test_one():
   # you run this by default

def two():
   # despite not having test in the name you should also run this

reason: test function name lengths are getting to long when I'm being descriptive with naming and frankly it seems anti dry.

Aucun commentaire:

Enregistrer un commentaire