You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually there is one pitfall patching this way. If for some reasonsetUp fails, tearDown method will not be called for it, thus patch will remian 'unstopped'. To overcame this, you could rewrite the setup to sth like:
cameel
changed the title
Dodać wpisy w "python coding style" odnośnie patching pitfalls
Poprawne sprzątanie po patchowaniu funkcji za pomocą modułu mock w TestCase.setUp()
May 10, 2018
The text was updated successfully, but these errors were encountered: