Skip to content

Commit

Permalink
Fix workspace list so it can handle additional fields in the response (
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmchen authored Feb 13, 2019
1 parent 3cd9d58 commit 57d28b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion databricks_cli/workspace/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@


class WorkspaceFileInfo(object):
def __init__(self, path, object_type, language=None):
def __init__(self, path, object_type, language=None, **kwargs): # noqa
self.path = path
self.object_type = object_type
self.language = language
Expand Down
3 changes: 2 additions & 1 deletion tests/workspace/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
TEST_WORKSPACE_PATH = '/test/workspace/path'
TEST_JSON_RESPONSE = {
'path': TEST_WORKSPACE_PATH,
'object_type': api.DIRECTORY
'object_type': api.DIRECTORY,
'created_at': 124
}
TEST_LANGUAGE = 'PYTHON'
TEST_FMT = 'SOURCE'
Expand Down

0 comments on commit 57d28b5

Please sign in to comment.