Skip to content

Commit

Permalink
Merge pull request #102 from gedankenstuecke/gdrive
Browse files Browse the repository at this point in the history
added googledrive to storage provider
  • Loading branch information
gedankenstuecke committed Jul 22, 2017
2 parents ec3e564 + 3863566 commit 007a1b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions osfclient/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ def test_split_storage():
assert store == 'figshare'
assert path == 'foo/bar/baz'

store, path = split_storage('googledrive/foo/bar/baz')
assert store == 'googledrive'
assert path == 'foo/bar/baz'

store, path = split_storage('/googledrive/foo/bar/baz')
assert store == 'googledrive'
assert path == 'foo/bar/baz'

def test_norm_remote_path():
path = 'foo/bar/baz.txt'
Expand Down
2 changes: 1 addition & 1 deletion osfclient/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import os
import six

KNOWN_PROVIDERS = ['osfstorage', 'github', 'figshare']
KNOWN_PROVIDERS = ['osfstorage', 'github', 'figshare', 'googledrive']


def norm_remote_path(path):
Expand Down

0 comments on commit 007a1b7

Please sign in to comment.