Fix test for relative links
This commit is contained in:
@@ -27,10 +27,11 @@ def test_copy(tmpdir):
|
||||
|
||||
filename = 'KeckObservatory20071020.jpg'
|
||||
src = os.path.join(SAMPLE_DIR, 'pictures', 'dir2', filename)
|
||||
dst = str(tmpdir.join(filename))
|
||||
utils.copy(src, dst, symlink=True, rellink=True)
|
||||
assert os.path.islink(dst)
|
||||
assert os.readlink(dst) == src
|
||||
|
||||
assert os.path.join(os.path.dirname(CURRENT_DIR)), os.readlink(dst) == src
|
||||
# get absolute path of the current dir plus the relative dir
|
||||
|
||||
def test_check_or_create_dir(tmpdir):
|
||||
path = str(tmpdir.join('new_directory'))
|
||||
|
||||
Reference in New Issue
Block a user