nestorsalceda / mamba

The definitive testing tool for Python. Born under the banner of Behavior Driven Development (BDD).
http://nestorsalceda.github.io/mamba
MIT License
518 stars 65 forks source link

Avoid linter warning: before and after has not method each #126

Closed jsenin closed 4 years ago

jsenin commented 5 years ago

Some python linters marks with after.each or before.each blocks as warning because method has not each property. They are defined as functions at __init__.py, so I added a contextmanganer decorator for before, before_all, after, after_all to avoid this warnings.