Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6968694

Browse files
committedDec 10, 2017
fix tests
1 parent bda5804 commit 6968694

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎deli_counter/test/test_images.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def test_delete(self, wsgi, app):
9898
# Test correct
9999
with patch('ingredients_tasks.tasks.image.delete_image.apply_async') as apply_async_mock:
100100
apply_async_mock.return_value = None
101-
self.delete(wsgi, "/v1/images/%s" % image.id, token=token, status=202)
101+
self.delete(wsgi, "/v1/images/%s" % image.id, token=token, status=204)
102102
# Check to make sure it's in deleting state
103103
with app.database.session() as session:
104104
image = session.query(Image).filter(Image.id == image.id).first()

‎deli_counter/test/test_instances.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def test_delete(self, wsgi, app):
8282
# Test correct
8383
with patch('ingredients_tasks.tasks.instance.delete_instance.apply_async') as apply_async_mock:
8484
apply_async_mock.return_value = None
85-
self.delete(wsgi, "/v1/instances/%s" % instance.id, token=token, status=202)
85+
self.delete(wsgi, "/v1/instances/%s" % instance.id, token=token, status=204)
8686
# Check to make sure it's in deleting state
8787
with app.database.session() as session:
8888
image = session.query(Instance).filter(Instance.id == instance.id).first()

0 commit comments

Comments
 (0)
Please sign in to comment.