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
For testing, the mock module should be used to do exactly what the docstring says.
I think that creating a decorator function that does this mocking as required would be the best approach, as it would allow to do something like so:
@mock_db
def test_something():
...
The text was updated successfully, but these errors were encountered:
I believe that the following code should be simplified to only do what it is supposed to do.
twitcher/twitcher/models/__init__.py
Lines 53 to 82 in fe51e8f
For testing, the
mock
module should be used to do exactly what the docstring says.I think that creating a decorator function that does this mocking as required would be the best approach, as it would allow to do something like so:
The text was updated successfully, but these errors were encountered: