aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jon Bernard <jbernard@tuxion.com> 2016-01-13 17:40:54 -0500
committerGravatar Jon Bernard <jbernard@tuxion.com> 2016-01-13 17:40:54 -0500
commit556b235c64b28505047681e16ac068e9019a6bba (patch)
treed4f1dd8afd3d7cee090c856562a347387bb64635
parent23acded468ee550b6dd8808f01423d012aa7e004 (diff)
downloaddotfiles-556b235c64b28505047681e16ac068e9019a6bba.tar.gz
dotfiles-556b235c64b28505047681e16ac068e9019a6bba.tar.bz2
dotfiles-556b235c64b28505047681e16ac068e9019a6bba.zip
Add failing test for adding a nested dotfile
-rw-r--r--test_dotfiles.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test_dotfiles.py b/test_dotfiles.py
index bdb3439..caff325 100644
--- a/test_dotfiles.py
+++ b/test_dotfiles.py
@@ -70,6 +70,14 @@ class TestRepository(object):
assert contents[1].target == target_b
assert contents[2].target == target_c
+ @pytest.mark.xfail(reason='nesting not yet supported')
+ def test_nested_name_to_target(self, repo, home):
+ r = Repository(repo, home)
+
+ actual = r._name_to_target(home.join('.vim/.mrconfig'))
+ expected = repo.join('vim/.mrconfig')
+ assert actual == expected
+
class TestDotfile(object):