2013-08-02 11:37:16 -05:00
|
|
|
import unittest
|
|
|
|
|
|
2021-01-31 16:49:12 -05:00
|
|
|
from etl import (
|
|
|
|
|
transform,
|
|
|
|
|
)
|
2014-06-11 15:06:22 +02:00
|
|
|
|
2020-10-15 12:46:24 -04:00
|
|
|
# Tests adapted from `problem-specifications//canonical-data.json`
|
2014-02-21 14:44:25 +08:00
|
|
|
|
|
|
|
|
|
2018-06-13 09:12:09 -04:00
|
|
|
class EtlTest(unittest.TestCase):
|
2017-04-04 22:35:02 +02:00
|
|
|
|
2021-05-08 22:43:32 -07:00
|
|
|
# Utility functions
|
|
|
|
|
def assertRaisesWithMessage(self, exception):
|
|
|
|
|
return self.assertRaisesRegex(exception, r".+")
|
2013-08-02 11:37:16 -05:00
|
|
|
|
2016-11-29 09:44:47 +01:00
|
|
|
|
2019-09-23 17:37:01 +02:00
|
|
|
if __name__ == "__main__":
|
2013-08-02 11:37:16 -05:00
|
|
|
unittest.main()
|