mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unittest - Testcase for bug TW-1381
This commit is contained in:
parent
d15c98deda
commit
22efbe3f74
1 changed files with 29 additions and 0 deletions
29
test/tw-1381.t
Executable file
29
test/tw-1381.t
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/usr/bin/env python2.7
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import sys
|
||||
import os
|
||||
import unittest
|
||||
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
from basetest import Task, TestCase
|
||||
|
||||
|
||||
class TestBug1381(TestCase):
|
||||
def setUp(self):
|
||||
self.t = Task()
|
||||
|
||||
def test_blocking(self):
|
||||
"""Blocking report displays tasks that are blocking other tasks"""
|
||||
self.t(("add", "blocks"))
|
||||
self.t(("add", "dep:1", "blocked"))
|
||||
code, out, err = self.t(("blocking",))
|
||||
|
||||
self.assertIn("blocks", out)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
unittest.main(testRunner=TAPTestRunner())
|
||||
|
||||
# vim: ai sts=4 et sw=4
|
Loading…
Add table
Add a link
Reference in a new issue