-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REF/TST: mixed use of mock/monkeypatch #24557
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
Conversation
Is the goal here to get rid of the import? We are dropping Py27 for 0.25 onwards so may be able to remove organically. I suppose by using a lambda we are making more assumptions about the |
@WillAyd we could drop the import in this module by using the mock fixture from conftest.py. this was to see if we need mock at all and could just use monkeypatch instead of both mock and monkeypatch. i expect this PR to fail on the parameters, i'll either change the number of inputs or change the lambda to a function with *args and **kwargs. |
Codecov Report
@@ Coverage Diff @@
## master #24557 +/- ##
=======================================
Coverage 92.33% 92.33%
=======================================
Files 166 166
Lines 52465 52465
=======================================
Hits 48442 48442
Misses 4023 4023
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #24557 +/- ##
=======================================
Coverage 92.37% 92.37%
=======================================
Files 166 166
Lines 52396 52396
=======================================
Hits 48403 48403
Misses 3993 3993
Continue to review full report at Codecov.
|
we also have a mock fixture in pandas/conftest.py should remove that too |
lgtm @jreback |
thanks! |
doubt if this will work as don't have gbq configured locally.
will need to check output of CI.