From 4881731eaf5befd20453538db2745be664313d3f Mon Sep 17 00:00:00 2001 From: Harro van der Klauw Date: Wed, 10 Apr 2013 09:27:53 +0200 Subject: [PATCH] Using the __name__ trick with __all__ to get rid of the unused import errors --- pytest_bdd/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pytest_bdd/__init__.py b/pytest_bdd/__init__.py index 94c2e07..62a3df9 100644 --- a/pytest_bdd/__init__.py +++ b/pytest_bdd/__init__.py @@ -1,2 +1,4 @@ from pytest_bdd.steps import given, when, then from pytest_bdd.scenario import scenario + +__all__ = [given.__name__, when.__name__, then.__name__, scenario.__name__]