aboutsummaryrefslogtreecommitdiffstats
path: root/test_dotfiles.py
diff options
context:
space:
mode:
Diffstat (limited to 'test_dotfiles.py')
-rw-r--r--test_dotfiles.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test_dotfiles.py b/test_dotfiles.py
index caff325..7cfb276 100644
--- a/test_dotfiles.py
+++ b/test_dotfiles.py
@@ -1,6 +1,7 @@
import pytest
from dotfiles import Repository, Dotfile, cli
+from dotfiles import IsSymlink
class TestCli(object):
@@ -116,8 +117,7 @@ class TestDotfile(object):
assert name.samefile(target)
for x in range(2, times):
- with pytest.raises(OSError):
- # TODO: verify exception type once those exists
+ with pytest.raises(IsSymlink):
Dotfile(name, target).add()
assert target.check(file=1, link=0)
assert name.check(file=1, link=1)