tests: Add tests for the VISIBLE meta tag

This commit is contained in:
Tomas Babej 2015-08-27 06:50:28 +02:00
parent c3dd085dde
commit 94205fb4ba

View file

@ -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)