add initial bulk run from pre-commit over all files
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
import sys
|
||||
import os
|
||||
import unittest
|
||||
|
||||
# Ensure python finds the local simpletap module
|
||||
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
@@ -40,19 +41,20 @@ class TestFilterPrefix(TestCase):
|
||||
"""Executed once before any test in the class"""
|
||||
cls.t = Task()
|
||||
cls.t.config("verbose", "nothing")
|
||||
cls.t('add foo')
|
||||
cls.t("add foo")
|
||||
|
||||
def test_success(self):
|
||||
"""Test successful search returns zero."""
|
||||
code, out, err = self.t('list /foo/')
|
||||
code, out, err = self.t("list /foo/")
|
||||
|
||||
def test_failure(self):
|
||||
"""Test failed search returns non-zero."""
|
||||
code, out, err = self.t.runError('list /bar/')
|
||||
code, out, err = self.t.runError("list /bar/")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
|
||||
unittest.main(testRunner=TAPTestRunner())
|
||||
|
||||
# vim: ai sts=4 et sw=4 ft=python
|
||||
|
||||
Reference in New Issue
Block a user