瀏覽代碼

test: add test of generic Adjuster base class

main
Rob Hallam 2 月之前
父節點
當前提交
62932f6b08
共有 1 個檔案被更改,包括 17 行新增0 行删除
  1. +17
    -0
      test/test_adjusters.py

+ 17
- 0
test/test_adjusters.py 查看文件

@@ -0,0 +1,17 @@
"""test_adjusters.py -- test pipeline Adjusters (eg TargetTimeAdjuster)"""
import unittest
import pipeline.adjusters as adjusters

class TestAdjuster(unittest.TestCase):
"""Test the generic Adjuster class"""

def test_init(self):
"""Test the Adjuster can be initialised"""
adjuster = adjusters.Adjuster()
self.assertEqual(adjuster.features, [])

def test_adjust(self):
"""Test the generic adjust"""
adjuster = adjusters.Adjuster()
self.assertEqual(adjuster.adjust(), [])
self.assertEqual(adjuster.features, [])

Loading…
取消
儲存