Skip to content

Commit

Permalink
unicode literals
Browse files Browse the repository at this point in the history
  • Loading branch information
smotornyuk committed Jan 21, 2020
1 parent 20fa59a commit 5698e4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ckan/tests/lib/test_uploader.py
Expand Up @@ -99,12 +99,12 @@ def test_group_upload(self, monkeypatch, tmpdir, make_app, ckan_config):
monkeypatch.setattr(ckan.lib.uploader, u'_storage_path', str(tmpdir))
group = {u'clear_upload': u'',
u'upload': FileStorage(
six.BytesIO(six.ensure_binary('hello')),
six.BytesIO(six.ensure_binary(u'hello')),
filename=u'logo.png',
content_type=u'PNG'
),
u'name': u'test-group-upload'}
group_upload = Upload('group')
group_upload = Upload(u'group')
group_upload.update_data_dict(group, u'url', u'upload', u'clear_upload')
group_upload.upload()
uploads_dir = tmpdir / u'storage' / u'uploads' / u'group'
Expand All @@ -113,4 +113,4 @@ def test_group_upload(self, monkeypatch, tmpdir, make_app, ckan_config):
app = make_app()
resp = app.get(u'/uploads/group/' + group[u'url'])
assert resp.status_code == 200
assert resp.body == 'hello'
assert resp.body == u'hello'

0 comments on commit 5698e4e

Please sign in to comment.