Skip to content

Commit

Permalink
Fix double encode in create_schema (#52)
Browse files Browse the repository at this point in the history
* schema

* update test
  • Loading branch information
pavius authored Oct 12, 2020
1 parent b067baf commit 3a7d9d9
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def setUp(self):
super(TestSchema, self).setUp()

self._schema_dir = '/v3io-py-test-schema'
self._schema_path = os.path.join(self._schema_dir, '.%23schema')
self._schema_path = os.path.join(self._schema_dir, '.#schema')

# clean up
self._delete_dir(self._schema_dir)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_client_deprecated.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def setUp(self):
super(TestSchema, self).setUp()

self._schema_dir = '/v3io-py-test-schema'
self._schema_path = os.path.join(self._schema_dir, '.%23schema')
self._schema_path = os.path.join(self._schema_dir, '.#schema')

# clean up
self._delete_dir(self._schema_dir)
Expand Down
2 changes: 1 addition & 1 deletion v3io/aio/dataplane/kv.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ async def create_schema(self,
A `Response` object
"""
put_object_args = locals()
put_object_args['path'] = os.path.join(put_object_args['table_path'], '.%23schema')
put_object_args['path'] = os.path.join(put_object_args['table_path'], '.#schema')
put_object_args['offset'] = 0
put_object_args['append'] = None
put_object_args['body'] = self._client._get_schema_contents(key, fields)
Expand Down
6 changes: 3 additions & 3 deletions v3io/dataplane/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ def __init__(self, client):
('stream', 'delete'),
('stream', 'describe'),
('stream', 'seek'),
('stream', 'put'),
('stream', 'get'),
('stream', 'put_records'),
('stream', 'get_records'),
('container', 'get'),
('container', 'get_contents'),
('container', 'list'),
]:
setattr(getattr(self, model_name),
model_call,
Expand Down
2 changes: 1 addition & 1 deletion v3io/dataplane/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ def create_schema(self,
A `Response` object
"""
put_object_args = locals()
put_object_args['path'] = os.path.join(put_object_args['path'], '.%23schema')
put_object_args['path'] = os.path.join(put_object_args['path'], '.#schema')
put_object_args['offset'] = 0
put_object_args['append'] = None
put_object_args['body'] = self._get_schema_contents(key, fields)
Expand Down
2 changes: 1 addition & 1 deletion v3io/dataplane/kv.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def create_schema(self,
A `Response` object
"""
put_object_args = locals()
put_object_args['path'] = os.path.join(put_object_args['table_path'], '.%23schema')
put_object_args['path'] = os.path.join(put_object_args['table_path'], '.#schema')
put_object_args['offset'] = 0
put_object_args['append'] = None
put_object_args['body'] = self._client._get_schema_contents(key, fields)
Expand Down

0 comments on commit 3a7d9d9

Please sign in to comment.