Skip to content

Commit ee6c909

Browse files
committed
use relative paths for contents fixture
1 parent 7106c1f commit ee6c909

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/services/contents/test_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,19 @@ def contents(contents_dir):
6767
nb = writes(new_notebook(), version=4)
6868
nbname = p.joinpath('{}.ipynb'.format(name))
6969
nbname.write_text(nb, encoding='utf-8')
70-
paths['notebooks'].append(nbname)
70+
paths['notebooks'].append(nbname.relative_to(contents_dir))
7171

7272
# Create a text file
7373
txt = '{} text file'.format(name)
7474
txtname = p.joinpath('{}.txt'.format(name))
7575
txtname.write_text(txt, encoding='utf-8')
76-
paths['textfiles'].append(txtname)
76+
paths['textfiles'].append(txtname.relative_to(contents_dir))
7777

7878
# Create a random blob
7979
blob = name.encode('utf-8') + b'\xFF'
8080
blobname = p.joinpath('{}.blob'.format(name))
8181
blobname.write_bytes(blob)
82-
paths['blobs'].append(blobname)
82+
paths['blobs'].append(blobname.relative_to(contents_dir))
8383
paths['all'] = list(paths.values())
8484
return paths
8585

0 commit comments

Comments
 (0)