Skip to content

Commit 0ba0cac

Browse files
author
Jan Steinke
committed
change urls in tests to new consolidated method
1 parent 9424d03 commit 0ba0cac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_picasso.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def test_api_uploading_file(self, client, random_image_files):
7878
b = bytearray(f)
7979
data = {}
8080
data['file'] = (io.BytesIO(b), 'test.png')
81-
response = client.post(url_for('api_upload_image'), data=data)
81+
response = client.post(url_for('api_images'), data=data)
8282
data = json.loads(response.get_data(as_text=True))
8383
assert data['ok'] == 'true'
8484
assert type(data['file']) is str
@@ -92,15 +92,15 @@ def test_api_visualizing_input(self, client, random_image_files, vis):
9292
b = bytearray(f)
9393
data = {}
9494
data['file'] = (io.BytesIO(b), 'test.png')
95-
upl_response = client.post(url_for('api_upload_image'), data=data)
95+
upl_response = client.post(url_for('api_images'), data=data)
9696
upl_data = json.loads(upl_response.get_data(as_text=True))
9797
response = client.get(url_for('api_visualize') + '?visualizer=' +
9898
vis.__name__ +
9999
'&image=' + str(upl_data['uid']))
100100
assert response.status_code == 200
101101

102102
def test_listing_images(self, client):
103-
response = client.get(url_for('api_list_images'))
103+
response = client.get(url_for('api_images'))
104104
assert response.status_code == 200
105105

106106

0 commit comments

Comments
 (0)