aboutsummaryrefslogtreecommitdiffstats
path: root/test_dotfiles.py
AgeCommit message (Collapse)AuthorFilesLines
2016-01-15Move implementation and tests back to directoriesGravatar Jon Bernard 1-164/+0
I think keeping the physical separation is helpful, especially as more features get added.
2016-01-15Add initial support for nestingGravatar Jon Bernard 1-1/+0
This feature means to replace what was called 'packages'. The old packages implementation was only one subdirectory lower than the home directory and quite limiting in that regard. Even worse, they had to be configured manually in the configuration file and could not be created from the command line. This approach offers any depth the user specifies because the rule is: you can only add files to the repository, not directories. So if a user adds a directory, the effect will be that each file contained in any portion of that directory will be moved into the repository and a symlink created. This completely removes both manual configuration and link ambiguity because there is always only once choice. The repository is used to maintain the directory structure, but only the leaf nodes (files) are symlinked in the home directory. This also makes it easy to store other non-dotfile files in the repository like wallpapers, fonts, music, or whatever.
2016-01-15Improve custom exceptionsGravatar Jon Bernard 1-2/+2
2016-01-13Add failing test for adding a nested dotfileGravatar Jon Bernard 1-0/+8
2016-01-13Fix cli unit test overrideGravatar Jon Bernard 1-4/+7
This was not my first choice, but it works. I need to put this in a fixture so it's not duplicated for every cli test function.
2016-01-10Mark CLI test as failing for the momentGravatar Jon Bernard 1-18/+2
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.
2016-01-08Remove home directory cli optionGravatar Jon Bernard 1-4/+5
2016-01-06Fix tests to match recent changesGravatar Jon Bernard 1-13/+58
2016-01-05Rename sync/unsync to link/unlinkGravatar Jon Bernard 1-4/+4
I think this naming is more appropriate and intuitive
2016-01-04Merge list into status and remove verboseGravatar Jon Bernard 1-33/+3
2016-01-04Add test for repository expected nameGravatar Jon Bernard 1-3/+4
2016-01-04Remove unique_suffix function, not neededGravatar Jon Bernard 1-17/+1
2016-01-04Use click decorator for version optionGravatar Jon Bernard 1-6/+0
2016-01-03Add cli testsGravatar Jon Bernard 1-0/+36
2016-01-03Use test fixtures and some cleanupGravatar Jon Bernard 1-166/+71
2016-01-03Consolidate tests into a single fileGravatar Jon Bernard 1-0/+234
2014-07-07Move tests into a directoryGravatar Jon Bernard 1-390/+0
I'm hoping to add more tests for specific features and break then into separate files so things are a bit easier to manage.
2014-05-29Correct logic in package prefix testGravatar Alexandre Viau 1-2/+2
In reference to #33.
2014-05-27Add test for syncing packages with a non-default prefixGravatar Jon Bernard 1-0/+28
This test currently fails because of a bug. In reference to #33.
2014-01-01Add unit test for adding a missing packageGravatar Jon Bernard 1-0/+23
This fails because the add operation is not aware of package settings, and therefore adds a package dotfiles as it normally would - as a toplevel symlink. The problem arises when a user attempts to sync and the expected symlink layout is not as it should be. With the force option, this can lead to deleted files with no way to recover. Re #20, #27
2013-12-17Verify symlink removal in unit testGravatar Jon Bernard 1-0/+4
Re: #25
2013-12-17Add unit test for removing a dotfile with a missing targetGravatar Jon Bernard 1-0/+21
If the remove operation is issued on a dotfile pointing to a target that's already been removed from the repository, then the symlink should just be removed quietly. Re: #25
2013-11-09Fixes #22: Ensure --force option is handed onGravatar Jay Sweeney 1-0/+9
2013-11-07Fix unit tests to exit with the correct return codeGravatar Jon Bernard 1-5/+1
2013-11-07Add unit test for single-sync featureGravatar Jon Bernard 1-0/+47
2013-11-07Add a unit test for non-existent package directoriesGravatar Jon Bernard 1-0/+21
If a package is defined in .dotfilesrc and the package directory doesn't exist in the repository when you attempt to add it, an IOError exception is thrown. This test captures the failing scenario. In reference to #17.
2013-11-07Remove unneeded whitespaces and fix typoGravatar Jesús García Crespo 1-2/+2
2013-02-09typo in testGravatar Luper Rouch 1-1/+1
2013-02-09added packages testsGravatar Luper Rouch 1-0/+51
2013-02-09fixed testsGravatar Luper Rouch 1-4/+9
2012-03-08Make source compatible with Python 3Gravatar Daniel Harding 1-1/+1
Replaced a few Python 2-only idioms with equivalents that work in both Python 2 and Python 3.
2012-01-08Update remaining references to 'unmanaged'Gravatar Jon Bernard 1-1/+1
2011-11-01Add support for in-repo configuration filesGravatar Jon Bernard 1-31/+32
In addition to parsing .dotfilesrc in the user's home directory, also look for that file inside the repository. This allows you to keep your repository and it's settings together. Closes: #1
2011-10-24Made dotfiles python2.5 compatibleGravatar Remco Wendt 1-0/+2
2011-10-23Refactored tests to use an assertPathEqualsGravatar Remco Wendt 1-22/+23
2011-10-24Added glob style pattern support for the ignore optionGravatar Remco Wendt 1-2/+2
2011-10-23Added unit test for glob pattern, which fail horribly yay!Gravatar Remco Wendt 1-0/+60
2011-10-23Fixed unit tests for use on mac, since /tmp is a symlink to /private/tmpGravatar Remco Wendt 1-5/+6
2011-10-05Fix bug when syncing an unmanaged directory symlinkGravatar Jon Bernard 1-2/+37
Closes #2
2011-08-27Add unit tests for recent bugfix and move operationGravatar Jon Bernard 1-0/+85