From 5566e5669258f923906fc3d7a4db40b6e32f27f1 Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Sat, 9 Jan 2016 09:51:06 -0500 Subject: Mark CLI test as failing for the moment I've tried a few approaches to overriding the defaults to test the click cli components and so far none of them have worked. Need to revisit this at some point. --- test_dotfiles.py | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'test_dotfiles.py') diff --git a/test_dotfiles.py b/test_dotfiles.py index 79274f3..2b93de6 100644 --- a/test_dotfiles.py +++ b/test_dotfiles.py @@ -5,15 +5,9 @@ from dotfiles import Repository, Dotfile, cli class TestCli(object): - @pytest.mark.xfail(reason='TODO') - def test_add(self): - assert False - - @pytest.mark.xfail(reason='TODO') - def test_remove(self): - assert False - + @pytest.mark.xfail(reason='global overrides not working') def test_status(self, runner, repo, home, monkeypatch): + # FIXME: this approach does not work monkeypatch.setattr('dotfiles.DEFAULT_HOMEDIR', str(home)) monkeypatch.setattr('dotfiles.DEFAULT_REPO_PATH', str(repo)) @@ -21,16 +15,6 @@ class TestCli(object): assert not result.exception assert result.output == '' - # TODO: can do better than this - - @pytest.mark.xfail(reason='TODO') - def test_link(self): - assert False - - @pytest.mark.xfail(reason='TODO') - def test_unlink(self): - assert False - class TestRepository(object): -- cgit v1.2.3