Skip to content

Commit

Permalink
Merge pull request #100 from ethanwhite/add-figshare
Browse files Browse the repository at this point in the history
[MRG] Add figshare as a storage provider
  • Loading branch information
betatim committed Jul 21, 2017
2 parents d276285 + 1ee5300 commit ec3e564
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions osfclient/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ def test_split_storage():
assert store == 'github'
assert path == 'foo/bar/baz'

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

store, path = split_storage('/figshare/foo/bar/baz')
assert store == 'figshare'
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']
KNOWN_PROVIDERS = ['osfstorage', 'github', 'figshare']


def norm_remote_path(path):
Expand Down

0 comments on commit ec3e564

Please sign in to comment.