Skip to content

Commit a73d726

Browse files
nathanielhermanalexandrwang
authored andcommitted
Add test for unicode (#2)
1 parent 46e3b45 commit a73d726

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_client.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# coding: utf-8
2+
13
import pytest
24
import scaleapi
35
import time
@@ -207,6 +209,15 @@ def test_audiotranscription_fail2():
207209
attachment='some_non_url')
208210

209211

212+
def test_unicode_ok():
213+
task = client.create_categorization_task(
214+
callback_url='http://www.example.com/callback',
215+
instruction='Hello, 世界',
216+
attachment_type='website',
217+
attachment='http://www.google.com/',
218+
categories=['public', 'private'])
219+
220+
210221
def test_cancel():
211222
task = make_a_task()
212223
# raises a scaleexception, because test tasks complete instantly

0 commit comments

Comments
 (0)