Add autospec to all mocks

This commit is contained in:
Ned Batchelder
2015-09-29 07:05:51 -04:00
parent 1f2f3de4a2
commit 43ac38aa87
18 changed files with 93 additions and 89 deletions

View File

@@ -19,7 +19,7 @@ class TestTrackViews(EventTrackingTestCase):
self.request_factory = RequestFactory()
patcher = patch('track.views.tracker')
patcher = patch('track.views.tracker', autospec=True)
self.mock_tracker = patcher.start()
self.addCleanup(patcher.stop)