Browse Source

Add test for relative links

pull/359/head
max (maauer) 7 years ago
parent
commit
4ec2a25a2e
  1. 6
      tests/test_utils.py

6
tests/test_utils.py

@ -25,6 +25,12 @@ def test_copy(tmpdir):
assert os.path.islink(dst)
assert os.readlink(dst) == src
filename = 'KeckObservatory20071020.jpg'
src = os.path.join(SAMPLE_DIR, 'pictures', 'dir2', filename)
utils.copy(src, dst, symlink=True, rellink=True)
assert os.path.islink(dst)
assert os.readlink(dst) == src
def test_check_or_create_dir(tmpdir):
path = str(tmpdir.join('new_directory'))

Loading…
Cancel
Save