-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Issue 1619 conftest assert rewrite #1622
Issue 1619 conftest assert rewrite #1622
Conversation
self.session = session | ||
|
||
def set_config(self, config): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we change this to take config in the constructor?
@@ -154,7 +164,8 @@ def _load_modules(mode): | |||
from _pytest.assertion import rewrite # noqa | |||
|
|||
|
|||
def warn_about_missing_assertion(mode): | |||
def warn_about_missing_assertion(mode, pluginmanager): | |||
print('got here') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this shouldn't be here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed, thanks!
…test-assert-rewrite
Tested it on my windows laptop since AppVeyor is stuck (py27,py35,linting). |
This change now makes rewrites assertions in
conftest.py
files so they can benefit from assertion rewriting.Fixes #1619
cc @flub @sober7