mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-18 21:33:07 +02:00
tests: Add tests for the VISIBLE meta tag
This commit is contained in:
parent
c3dd085dde
commit
94205fb4ba
1 changed files with 26 additions and 0 deletions
|
@ -397,3 +397,29 @@ class TestViewportsSpecificSortingCombined(TestViewportsSpecificSorting):
|
||||||
* [ ] home task 2 (2015-08-02 00:00) #{uuid}
|
* [ ] home task 2 (2015-08-02 00:00) #{uuid}
|
||||||
* [ ] work task 2 (2015-08-02 00:00) #{uuid}
|
* [ ] work task 2 (2015-08-02 00:00) #{uuid}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
class TestViewportsVisibleMetaTag(IntegrationTest):
|
||||||
|
|
||||||
|
viminput = """
|
||||||
|
=== Home tasks | project:Home -VISIBLE ===
|
||||||
|
|
||||||
|
=== Chores | project:Home.Chores ===
|
||||||
|
"""
|
||||||
|
|
||||||
|
vimoutput = """
|
||||||
|
=== Home tasks | project:Home -VISIBLE ===
|
||||||
|
* [ ] home task #{uuid}
|
||||||
|
|
||||||
|
=== Chores | project:Home.Chores ===
|
||||||
|
* [ ] chore task #{uuid}
|
||||||
|
"""
|
||||||
|
|
||||||
|
tasks = [
|
||||||
|
dict(description="home task", project='Home.Random'),
|
||||||
|
dict(description="chore task", project='Home.Chores'),
|
||||||
|
]
|
||||||
|
|
||||||
|
def execute(self):
|
||||||
|
# Currently, two saves are necessary for VISIBLE to take effect
|
||||||
|
self.command("w", regex="written$", lines=1)
|
||||||
|
self.command("w", regex="written$", lines=1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue