1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00
Commit Graph

38 Commits

Author SHA1 Message Date
Unknown
46804cd858 Fixing test failures 2018-12-02 20:48:46 -07:00
William Ting
7c7865ea7e Add match consecutive tests. 2016-06-22 18:09:36 -07:00
William Ting
3cb4e8a28c Add match_anywhere tests. 2016-06-22 17:52:00 -07:00
William Ting
218d779b4d Simplify flake8 noqa. 2016-06-22 17:51:17 -07:00
William Ting
be5b703996 Add integration test dir. 2016-06-22 17:51:17 -07:00
William Ting
94dae01b49 Move unit tests to own folder. 2016-06-22 17:51:17 -07:00
William Ting
d529790278 Run pre-commit on repo. 2016-04-28 23:33:04 -07:00
William Ting
581b8d9617 autopep8'ed 2014-08-09 19:59:41 -07:00
William Ting
f23727ed0f Disable Unicode tests for Python 3.
Closes #299.

Due to the mixed testing between Python 2 and 3 and different string
implementations, there's no easy way to test Unicode stuff.
2014-06-28 20:16:06 -07:00
William Ting
62c0877479 Add xrange() and fix second() for Python3. 2014-06-28 19:37:32 -07:00
William Ting
921b52e9d5 Add a u() wrapper to enable testing to work in both Python2 and Python3. 2014-06-28 19:34:45 -07:00
William Ting
567ae121ab Add install / uninstall / documentation for tcsh shell. 2014-06-28 19:07:55 -07:00
William Ting
3465bb1f84 Migrate from Yelp/Testify to py.test.
Closes #300.
2014-06-28 18:36:52 -07:00
William Ting
3ef1195077 simplify file structure 2014-01-11 11:46:50 -06:00
William Ting
35bc63c66e Fix encoding issues.
The original implementation used str.encode() on input and str.decode() on
output. However this would cause UnicodeDecodeError since certain characters
can't be encoded / decoded in ASCII.

The new solution is to use unicode() on all input strings and output UTF-8
encoded strings. This makes the assumption that the shell can handle UTF-8
strings.
2014-01-08 11:05:25 -06:00
William Ting
3f460fb3e9 Add Python 2.6 support back.
Closes #242.
2014-01-07 09:56:30 -06:00
William Ting
4bb6dfe1ca use python vs python2 2014-01-02 15:56:43 -06:00
William Ting
6f5e4dd2d1 fix helper function unit tests 2014-01-01 22:00:24 -06:00
William Ting
c4ec07784a clean up some utils tests 2014-01-01 21:53:36 -06:00
William Ting
85824098c1 modify iteration tests to explicitly work with generators 2013-12-31 19:09:51 -06:00
William Ting
b3162c917b add helper functions unit tests 2013-12-31 18:47:08 -06:00
William Ting
80d7ab660f add file system integration tests 2013-12-31 18:35:57 -06:00
William Ting
795bdcc9a7 add env vars integration tests 2013-12-31 18:02:08 -06:00
William Ting
59e494a066 add has_uppercase() test 2013-12-31 17:41:12 -06:00
William Ting
cc9b7c28cf add travis config 2013-12-31 17:37:19 -06:00
William Ting
fb1f397fee add string unit tests 2013-12-31 16:49:41 -06:00
William Ting
737ccf85c1 add iteration test cases 2013-12-31 16:33:32 -06:00
William Ting
63925437bd remove unit tests 2013-05-14 20:58:37 -05:00
William Ting
ba6b1e54ae update manpages 2013-05-14 19:14:03 -05:00
William Ting
6f887a2000 fix unit tests to match new decrease calculation 2013-02-24 23:55:29 -06:00
Xavier Lepaul
b8901586cb adding option to decrease weight
added a new option, -d/--decrease to decrease the weight of a path.
added --increase as an alias to --add for symetry.
2013-02-24 20:52:09 -08:00
William Ting
f41d0fb7b3 Remove database migration code support for v17 and older.
The migration code was never working to begin with. Users migrating from v17 or
older will be starting from an empty, new database.
2012-06-23 13:21:24 -10:00
William Ting
f29876b202 Fix #130: Use temporary directory for unit tests. 2012-06-10 20:50:18 -10:00
William Ting
05026ff54e break db load into smaller functions, load backup if opening primary db fails 2012-05-28 09:44:09 -10:00
William Ting
b00e0e85e1 Fix #123, new installations were not initializing database properly.
Also added unit test coverage to check database initialization, saving, and
loading.  Unit tests also revealed that migration code was not working properly
(starts database from scratch instead of copying existing entries over).
2012-05-28 09:21:31 -10:00
William Ting
867be37543 remove tmp files created from unit tests 2012-05-27 13:35:47 -10:00
William Ting
e62e720765 move config back to global space 2012-05-12 17:00:38 -10:00
William Ting
f25d7ba996 add unit tests, run using: make test 2012-05-12 16:31:58 -10:00