Don't explicitly raise a TroveboxError if False is returned,
rely on frontend to issue an error code. This also means we don't need to test for this in unit tests.
This commit is contained in:
parent
6b3f010920
commit
bf437ffc7e
10 changed files with 20 additions and 133 deletions
|
@ -91,13 +91,6 @@ class TestActivitiesPurge(TestActivities):
|
|||
mock_get.assert_called_with("/activities/purge.json", foo="bar")
|
||||
self.assertEqual(result, True)
|
||||
|
||||
@mock.patch.object(trovebox.Trovebox, 'post')
|
||||
def test_activity_purge_failure(self, mock_post):
|
||||
"""Test activity purging """
|
||||
mock_post.return_value = self._return_value(False)
|
||||
with self.assertRaises(trovebox.TroveboxError):
|
||||
result = self.client.activities.purge(foo="bar")
|
||||
|
||||
class TestActivityView(TestActivities):
|
||||
@mock.patch.object(trovebox.Trovebox, 'get')
|
||||
def test_activity_view(self, mock_get):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue