add initial bulk run from pre-commit over all files
This commit is contained in:
@@ -28,11 +28,13 @@
|
||||
import sys
|
||||
import os
|
||||
import unittest
|
||||
|
||||
# Ensure python finds the local simpletap module
|
||||
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
from basetest import Task, TestCase
|
||||
|
||||
|
||||
class TestHistoryDaily(TestCase):
|
||||
def setUp(self):
|
||||
"""Executed before each test in the class"""
|
||||
@@ -66,6 +68,7 @@ class TestHistoryDaily(TestCase):
|
||||
self.assertRegex(out, r"2015\s+January\s+2\s+\++X+\s")
|
||||
self.assertRegex(out, r"\s+February\s+2\s+\++X+\-+")
|
||||
|
||||
|
||||
class TestHistoryWeekly(TestCase):
|
||||
def setUp(self):
|
||||
"""Executed before each test in the class"""
|
||||
@@ -171,8 +174,10 @@ class TestHistoryAnnual(TestCase):
|
||||
self.assertRegex(out, r"2014\s+\++X+\s")
|
||||
self.assertRegex(out, r"2015\s+\++X+\-+")
|
||||
|
||||
|
||||
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