[ARVADOS] updated: 1.3.0-391-gff690e65d

Git user git at public.curoverse.com
Wed Feb 27 15:09:37 EST 2019


Summary of changes:
 sdk/python/tests/test_arv_put.py | 12 ++++++++++++
 1 file changed, 12 insertions(+)

       via  ff690e65d0e9968d678c6d878af6d027e16bfa12 (commit)
      from  54366b12c6c0419a3ef9f45ddbd7c09bbde72d3a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit ff690e65d0e9968d678c6d878af6d027e16bfa12
Author: Lucas Di Pentima <ldipentima at veritasgenetics.com>
Date:   Wed Feb 27 17:09:10 2019 -0300

    14884: Adds unicode-named file upload test.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima at veritasgenetics.com>

diff --git a/sdk/python/tests/test_arv_put.py b/sdk/python/tests/test_arv_put.py
index a41184d10..01a52a5e6 100644
--- a/sdk/python/tests/test_arv_put.py
+++ b/sdk/python/tests/test_arv_put.py
@@ -1,3 +1,5 @@
+# -*- coding: utf-8 -*-
+
 # Copyright (C) The Arvados Authors. All rights reserved.
 #
 # SPDX-License-Identifier: Apache-2.0
@@ -1284,6 +1286,16 @@ class ArvPutIntegrationTest(run_test_server.TestCaseWithServers,
                          r'^\./%s.*:file2.txt' % os.path.basename(tmpdir))
         self.assertRegex(c['manifest_text'], r'^.*:file3.txt')
 
+    def test_unicode_on_filename(self):
+        tmpdir = self.make_tmpdir()
+        fname = u"i❤arvados.txt"
+        with open(os.path.join(tmpdir, fname), 'w') as f:
+            f.write("This is a unicode named file")
+        col = self.run_and_find_collection("", ['--no-progress', tmpdir])
+        self.assertNotEqual(None, col['uuid'])
+        c = arv_put.api_client.collections().get(uuid=col['uuid']).execute()
+        self.assertTrue(fname in c['manifest_text'], u"{} does not include {}".format(c['manifest_text'], fname))
+
     def test_silent_mode_no_errors(self):
         self.authorize_with('active')
         tmpdir = self.make_tmpdir()

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list