Browse Source

Fix test for relative links

pull/359/head
max (maauer) 7 years ago
parent
commit
f2f6fbe594
  1. 5
      tests/test_utils.py

5
tests/test_utils.py

@ -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'))

Loading…
Cancel
Save