Using the __name__ trick with __all__ to get rid of the unused import errors
This commit is contained in:
parent
81eeb32f0e
commit
4881731eaf
|
@ -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__]
|
||||
|
|
Loading…
Reference in New Issue