aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jon Bernard <jbernard@tuxion.com> 2016-01-09 09:51:06 -0500
committerGravatar Jon Bernard <jbernard@tuxion.com> 2016-01-10 09:53:51 -0500
commit5566e5669258f923906fc3d7a4db40b6e32f27f1 (patch)
tree3b552d6e30ff2ee6871762f27f102e072d6a356b
parent0d761ceac8dc54d95788f7e60463b679e0587f25 (diff)
downloaddotfiles-5566e5669258f923906fc3d7a4db40b6e32f27f1.tar.gz
dotfiles-5566e5669258f923906fc3d7a4db40b6e32f27f1.tar.bz2
dotfiles-5566e5669258f923906fc3d7a4db40b6e32f27f1.zip
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.
-rw-r--r--test_dotfiles.py20
1 files changed, 2 insertions, 18 deletions
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):