aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-06-04 10:34:36 +0200
committerGitHub <[email protected]>2018-06-04 10:34:36 +0200
commitbe77f4e8ab93dcfecb0fb306479a3eae3e2001cb (patch)
tree6e0dd3dc6af8f50e9b0029613a69b107056ebd06 /tests
parentf8ba37b42e529b90b10050610098cd648f3a3572 (diff)
parent1090d7476f08313202c82d4f6f3ea2ee81231a37 (diff)
downloadmastodon.py-be77f4e8ab93dcfecb0fb306479a3eae3e2001cb.tar.gz
Merge pull request #135 from goldensuneur/fix_update_credentials
Fix update credentials
Diffstat (limited to 'tests')
-rw-r--r--tests/test_account.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/test_account.py b/tests/test_account.py
index 240abca..2716ad1 100644
--- a/tests/test_account.py
+++ b/tests/test_account.py
@@ -92,3 +92,23 @@ def test_account_update_credentials(api):
92 header = image, 92 header = image,
93 header_mime_type = "image/jpeg") 93 header_mime_type = "image/jpeg")
94 assert account 94 assert account
95
96@pytest.mark.vcr(match_on=['path'])
97def test_account_update_credentials_no_header(api):
98 account = api.account_update_credentials(
99 display_name='John Lennon',
100 note='I walk funny',
101 avatar = "tests/image.jpg")
102 assert account
103
104@pytest.mark.vcr(match_on=['path'])
105def test_account_update_credentials_no_avatar(api):
106 with open('tests/image.jpg', 'rb') as f:
107 image = f.read()
108
109 account = api.account_update_credentials(
110 display_name='John Lennon',
111 note='I walk funny',
112 header = image,
113 header_mime_type = "image/jpeg")
114 assert account
Powered by cgit v1.2.3 (git 2.41.0)