-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Remove dependency on mock #158
Comments
Hi @suriya! |
Of course it can be moved. You need two files, one that is imported and
used in production and one that is imported and used only during testing.
The mock mock dependency need not be in the production file.
|
I completely agree with your motivation. The possible solution is to move |
My suggestion is simpler. Create a file called |
These imports are defined in tests/_compat.py and used only in tests. Fixes issue Stranger6667#158.
@Stranger6667 Could you help with this issue? |
Should be fixed now. In a case of any issues, feel free to reopen it |
Thank you so much! |
Postmarker has a dependency on
mock
, used here:postmarker/postmarker/_compat.py
Line 13 in c0c0f7a
I notice that
mock.patch
is used only in tests. Does this make sense to move the line to a separate file_compat_tests.py
so that normal usage ofpostmarker
does not need themock
package?The text was updated successfully, but these errors were encountered: