Add empty __init__.py for set folder as module. Add base.py module that contains a base class for toaster test cases now have an object with options and a logger.
Signed-off-by: Aníbal Limón <[email protected]> --- lib/toaster/tests/__init__.py | 0 lib/toaster/tests/base.py | 11 +++++++++++ 2 files changed, 11 insertions(+) create mode 100644 lib/toaster/tests/__init__.py create mode 100644 lib/toaster/tests/base.py diff --git a/lib/toaster/tests/__init__.py b/lib/toaster/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/lib/toaster/tests/base.py b/lib/toaster/tests/base.py new file mode 100644 index 0000000..8b303ac --- /dev/null +++ b/lib/toaster/tests/base.py @@ -0,0 +1,11 @@ +import unittest + +class ToasterOptions(object): + pass + +class ToasterTestCase(unittest.TestCase): + def __init__(self, testname, opts, logger): + super(ToasterTestCase, self).__init__(testname) + + self.opts = opts + self.logger = logger -- 2.1.4 -- _______________________________________________ toaster mailing list [email protected] https://lists.yoctoproject.org/listinfo/toaster
