Skip to content

Commit

Permalink
is08: fix test for 204 no content response
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbonney committed Aug 28, 2019
1 parent 15e4004 commit 5949b81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion is08/activation.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ def delete(self):
url = self.urlBase + "map/activations/{}".format(self.activationID)
deleteCall = Call(url)
deleteCall.expectedCode = 204
deleteCall.string = True
deleteCall.delete()
deleteCall.expectedCode = 404
try:
Expand Down
3 changes: 2 additions & 1 deletion is08/calls.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ def _makeRequest(self):
self._responseObject = do_request(self.method, self.url, json=self.data)
self._checkForErrors()
self._checkStatusCode()
self._getJSON()
if self.expectedCode != 204:
self._getJSON()

def get(self):
return self._genericRequestProcess("get")
Expand Down

0 comments on commit 5949b81

Please sign in to comment.