aboutsummaryrefslogtreecommitdiff
path: root/test_dotfiles.py
AgeCommit message (Collapse)AuthorLines
2016-01-15Move implementation and tests back to directoriesJon Bernard-164/+0
I think keeping the physical separation is helpful, especially as more features get added.
2016-01-15Add initial support for nestingJon Bernard-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 exceptionsJon Bernard-2/+2
2016-01-13Add failing test for adding a nested dotfileJon Bernard-0/+8
2016-01-13Fix cli unit test overrideJon Bernard-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 momentJon Bernard-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 optionJon Bernard-4/+5
2016-01-06Fix tests to match recent changesJon Bernard-13/+58
2016-01-05Rename sync/unsync to link/unlinkJon Bernard-4/+4
I think this naming is more appropriate and intuitive
2016-01-04Merge list into status and remove verboseJon Bernard-33/+3
2016-01-04Add test for repository expected nameJon Bernard-3/+4
2016-01-04Remove unique_suffix function, not neededJon Bernard-17/+1
2016-01-04Use click decorator for version optionJon Bernard-6/+0
2016-01-03Add cli testsJon Bernard-0/+36
2016-01-03Use test fixtures and some cleanupJon Bernard-166/+71
2016-01-03Consolidate tests into a single fileJon Bernard-0/+234
2014-07-07Move tests into a directoryJon Bernard-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 testAlexandre Viau-2/+2
In reference to #33.
2014-05-27Add test for syncing packages with a non-default prefixJon Bernard-0/+28
This test currently fails because of a bug. In reference to #33.
2014-01-01Add unit test for adding a missing packageJon Bernard-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 testJon Bernard-0/+4
Re: #25
2013-12-17Add unit test for removing a dotfile with a missing targetJon Bernard-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 onJay Sweeney-0/+9
2013-11-07Fix unit tests to exit with the correct return codeJon Bernard-5/+1
2013-11-07Add unit test for single-sync featureJon Bernard-0/+47
2013-11-07Add a unit test for non-existent package directoriesJon Bernard-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 typoJesús García Crespo-2/+2
2013-02-09typo in testLuper Rouch-1/+1
2013-02-09added packages testsLuper Rouch-0/+51
2013-02-09fixed testsLuper Rouch-4/+9
2012-03-08Make source compatible with Python 3Daniel Harding-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'Jon Bernard-1/+1
2011-11-01Add support for in-repo configuration filesJon Bernard-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 compatibleRemco Wendt-0/+2
2011-10-23Refactored tests to use an assertPathEqualsRemco Wendt-22/+23
2011-10-24Added glob style pattern support for the ignore optionRemco Wendt-2/+2
2011-10-23Added unit test for glob pattern, which fail horribly yay!Remco Wendt-0/+60
2011-10-23Fixed unit tests for use on mac, since /tmp is a symlink to /private/tmpRemco Wendt-5/+6
2011-10-05Fix bug when syncing an unmanaged directory symlinkJon Bernard-2/+37
Closes #2
2011-08-27Add unit tests for recent bugfix and move operationJon Bernard-0/+85