Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BaseFeatureFixture.feature fails when used with plain-function features #4

Open
rafacarrascosa opened this issue Apr 9, 2014 · 0 comments
Labels

Comments

@rafacarrascosa
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant