Browse Source

test: add test of generic Adjuster base class

main
Rob Hallam 2 months ago
parent
commit
62932f6b08
1 changed files with 17 additions and 0 deletions
  1. +17
    -0
      test/test_adjusters.py

+ 17
- 0
test/test_adjusters.py View File

@@ -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…
Cancel
Save