featureforge icon indicating copy to clipboard operation
featureforge copied to clipboard

BaseFeatureFixture.feature fails when used with plain-function features

Open rafacarrascosa opened this issue 11 years ago • 0 comments

When testing, if you assign a plain function to BaseFeatureFixture.feature it gets transformed[0] to a bound method and therefore gets called with a "self" argument (along with the fixture). This behavior will almost always cause a type error in the feature being tested.

[0] Actually the function is untouched but getattr will always return it as a bound method.

rafacarrascosa avatar Apr 09 '14 19:04 rafacarrascosa