From 64ec9e20987072692227d8817d9fd99d497fea5e Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Wed, 18 Apr 2018 22:00:35 +0200 Subject: Update the tests --- tests/test_account.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'tests/test_account.py') diff --git a/tests/test_account.py b/tests/test_account.py index dac65ac..a0072f4 100644 --- a/tests/test_account.py +++ b/tests/test_account.py @@ -82,15 +82,13 @@ def test_blocks(api): @pytest.mark.vcr() def test_account_update_credentials(api): - import base64 with open('tests/image.jpg', 'rb') as f: image = f.read() - b64_image = base64.b64encode(image) - data_uri = b'data:image/jpeg;base64,' + b64_image account = api.account_update_credentials( display_name='John Lennon', note='I walk funny', - avatar = data_uri, - header = data_uri) + avatar = "tests/image.jpg", + header = image, + header_mime_type = "image/jpeg") assert account -- cgit v1.2.3