From 4a7d81b333740b7944279e192b99d46bf109fbb0 Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Wed, 30 Dec 2015 06:45:25 -0500 Subject: Strip leading newline from list output --- tests/test_repository.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/test_repository.py') diff --git a/tests/test_repository.py b/tests/test_repository.py index 60c4cc4..098704b 100644 --- a/tests/test_repository.py +++ b/tests/test_repository.py @@ -14,8 +14,7 @@ def test_list(tmpdir): # manual discovery repository.dotfiles = [dotfile, dotfile, dotfile] - expected_list = ("\n" - ".vimrc -> Dotfiles/vimrc (unknown)\n" + expected_list = (".vimrc -> Dotfiles/vimrc (unknown)\n" ".vimrc -> Dotfiles/vimrc (unknown)\n" ".vimrc -> Dotfiles/vimrc (unknown)") @@ -27,12 +26,13 @@ def test_discovery(tmpdir): repo = tmpdir.ensure("Dotfiles", dir=1) tmpdir.join('.bashrc').mksymlinkto(repo.ensure('bashrc')) + tmpdir.join('.inputrc').mksymlinkto(repo.ensure('inputrc')) tmpdir.join('.vimrc').mksymlinkto(repo.ensure('vimrc')) repository = Repository(repo, tmpdir) - expected_list = ("\n" - ".bashrc -> Dotfiles/bashrc (unknown)\n" + expected_list = (".bashrc -> Dotfiles/bashrc (unknown)\n" + ".inputrc -> Dotfiles/inputrc (unknown)\n" ".vimrc -> Dotfiles/vimrc (unknown)") assert expected_list == str(repository) -- cgit v1.2.3