Commit graph

155 commits

Author SHA1 Message Date
Tomas Janousek
1cb822455c tests: Drop some (hopefully) unnecessary sleeps
vimrunner.Server.remote_expr waits for the result so we don't need to
sleep, except perhaps if vim does something asynchronously?
Anyway, this doesn't seem to break any tests here, and is noticeably
faster.
2020-07-02 09:51:56 -04:00
Tomas Janousek
c8c3cc9a00 tests: Fix misquoted g:vimwiki_list setting
vimrunner.Client.command doesn't do any escaping so we can only use
double quotes. Otherwise it does this:

    self.server.remote_expr(["VimrunnerPyEvaluateCommandOutput('let g:vimwiki_list = [{'syntax': 'mediawiki', 'ext': '.txt','path': '/tmp/tmpl1hh2nnf'}]')"])
    E449: Invalid expression received: Send expression failed.
2020-07-02 09:51:56 -04:00
Tomas Janousek
6609c541eb tests: Fix typo varialbes → variables 2020-07-02 09:51:56 -04:00
Tomas Janousek
c2627a14ad tests: Fix PEP 8 warnings in base.py 2020-07-02 09:51:56 -04:00
mrossinek
97bfa1315c
Add unit tests to test fix of #182 (allow colon remap) 2019-02-24 12:08:54 -05:00
mrossinek
504aefadef
Add unit tests for default, suppressed and custom mappings 2019-02-24 12:08:52 -05:00
DancingQuanta
8d8fd2c20b Implemented multIi-markup tests in vim of viewport and preset 2018-10-18 01:00:29 -04:00
DancingQuanta
159d5c4b79 Implemented multi-markup parsing tests for viewport and preset 2018-10-18 01:00:29 -04:00
DancingQuanta
920c065d98 extra-syntaxes: First of test suite of extra syntaxes using HEADER macro with test_syntax_parsing 2018-10-18 01:00:29 -04:00
Tomas Babej
b00e886142
tests: Use explicit coverage tracking 2018-07-31 03:46:58 -04:00
Bodo Graumann
5bf0c89ae8 Use preset header in vwtask and viewport 2018-07-17 21:53:18 -04:00
Bodo Graumann
4372d52298 Add new header type "Preset Header"
As first envisioned in #69, these preset headers allow us to have a
hierarchical structure of taskwarrior filters and defaults.
2018-07-17 21:53:18 -04:00
Tomas Babej
3e615c27e3
tests: Provide more helpful message when looking for scripts 2018-07-15 18:26:30 -04:00
Tomas Babej
dfc2aef502
tests: Update list of script paths 2018-07-15 18:26:19 -04:00
Tomas Babej
496bf34dfa tests: Add test for preservation of default+custom tags in a viewport generated task 2017-07-31 17:22:57 +02:00
Bodo Graumann
895b36d4d4 Test: Only kill gvim instances with custom name
Vimrunner-python allows to set a custom server name, which is used with
the `--servername` parameter for `gvim`. This way we can restrict the
killing of gvim instances to those, that we have used. For that purpose
we use the standard linux `pkill` utility instead of `killall`.
2017-07-31 00:54:08 +02:00
Bodo Graumann
0225b44e53 tests: Add regression test for multiple caches 2017-01-27 22:23:33 +01:00
Bodo Graumann
8f51f2f4c2 main: Use one cache object for each buffer 2017-01-27 22:23:33 +01:00
Bodo Graumann
32a1c45685 VimwikiTask: Omit 00:00 time from due date 2017-01-27 20:24:34 +01:00
Tomas Babej
0eedf6f3ef Revert "Mappings: Delegate to VimwikiFollowLink for link creation"
This reverts commit 0ac7da0fde.
The commit contained code that was included by mistake.
2017-01-27 14:43:25 +01:00
Bodo Graumann
7e70ba9935 tests: Test invalid parent-child task relation 2017-01-27 10:55:01 +01:00
Bodo Graumann
a22ad7e3cb tests: Allow running tests with en_GB locale 2017-01-27 10:55:01 +01:00
Bodo Graumann
ab4c7646a4 IntegrationTest: correctly retry start_client 2017-01-27 10:55:01 +01:00
Tomas Babej
0ac7da0fde Mappings: Delegate to VimwikiFollowLink for link creation 2017-01-27 10:29:34 +01:00
Tomas Babej
4b55082413 tests: Test proper precise detection of vimwiki links 2017-01-11 11:17:39 +01:00
Tomas Babej
1de1835eff tests: Extend coverage of the redo command 2017-01-11 10:22:40 +01:00
Tomas Babej
1dd6d45016 tests: Add initial test coverate for TaskWikiRedo 2017-01-11 09:53:27 +01:00
Tomas Babej
21b766134f coverage: Explicit coverage tracking no longer needed 2017-01-09 00:38:24 +01:00
Tomas Babej
35bdae5a05 tests: test_util: Use MockVim from tests.base instead of redefining 2017-01-08 21:00:13 +01:00
Tomas Babej
6ca9255a39 tests: Fix invalid expectation with regard to the viewport inspection output 2017-01-08 18:06:46 +01:00
Tomas Babej
2e402bf721 tests: base: Allow more unicode characters in the description during uuid matching 2017-01-07 23:35:21 +01:00
Tomas Babej
9586549eed tests: Add more sanity checks for new unicode tests 2017-01-07 23:35:00 +01:00
Tomas Babej
207cf8e317 tests: Remove eluded debug statement 2017-01-07 23:19:17 +01:00
Tomas Babej
edaebb9fb4 tests: Add tests for selection of unicode projects and tags 2017-01-07 19:37:40 +01:00
Tomas Babej
6c70cdcecc tests: Fix invalid expectations 2017-01-07 19:03:27 +01:00
Tomas Babej
2d591a0964 tests: Add tests for unicode viewport definitions 2017-01-07 13:38:34 +01:00
Tomas Babej
eff390fe62 tests: Add test for current line preservation 2017-01-06 12:09:46 +01:00
Tomas Babej
eff9d2164c tests: Provide more details when regex search fails 2017-01-06 12:09:30 +01:00
Tomas Babej
f2c9324fe8 tests: Add test case for empty filter in the viewport 2017-01-04 20:54:45 +01:00
Tomas Babej
20a39a1003 tests: Fix incorrect test expectation 2017-01-04 03:39:05 +01:00
Tomas Babej
8eb10da06d Revert "Exaustive search for travis bug"
This reverts commit 8ebaa6d41a.

This experiment turned out to be a harder issue, so let's keep it off
the master branch.
2016-12-18 01:15:07 +01:00
Tomas Babej
8ebaa6d41a Exaustive search for travis bug 2016-12-17 01:08:14 +01:00
Tomas Babej
700680363d tests: Extend setup assertion for debugging 2016-12-16 17:37:33 +01:00
Tomas Babej
845963fe0d tests: Fix invalid relative imports 2016-12-16 15:09:58 +01:00
Tomas Babej
3f392a827a tests: Support testing vim under python3 2016-12-16 14:54:59 +01:00
Tomas Babej
dd0d4203f1 python3: Make tests work 2016-12-16 04:11:09 +01:00
Tomas Babej
29c6c1d29c python3: Use six.text_type instead direct unicode/str 2016-12-16 03:40:42 +01:00
Tomas Babej
7459eee088 tests: Fix tests to expect new default ordering 2016-12-13 00:27:24 +01:00
Tomas Babej
7ca18a4137 tests: Add test for viewport being terminated by a header 2016-12-12 23:43:02 +01:00
Tomas Babej
3a4de9cdfd tests: Add test for preserving completed task hierarchy 2016-10-23 02:51:54 +02:00