diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2017-06-08 11:32:06 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-12 15:04:09 +0100 |
commit | 4d01610f36eaee8da3126bb5045856279371fd17 (patch) | |
tree | 2155e594c7b5059ffb49c441e5a4ec7c0dfb8ae1 /meta/lib/oeqa/selftest/cases/oelib/types.py | |
parent | cf2ee12b007e5570959ccfbb643159b21d90426e (diff) | |
download | openembedded-core-contrib-4d01610f36eaee8da3126bb5045856279371fd17.tar.gz |
oeqa/cases/oelib: Change default case class to unittest.case.TestCase
Some tests doesn't need call bitbake so it is better to use the
basic unittest case class.
[YOCTO #10828]
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/oelib/types.py')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/oelib/types.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oeqa/selftest/cases/oelib/types.py b/meta/lib/oeqa/selftest/cases/oelib/types.py index 99c84044be..6b53aa64e5 100644 --- a/meta/lib/oeqa/selftest/cases/oelib/types.py +++ b/meta/lib/oeqa/selftest/cases/oelib/types.py @@ -1,7 +1,7 @@ -from oeqa.selftest.case import OESelftestTestCase +from unittest.case import TestCase from oe.maketype import create -class TestBooleanType(OESelftestTestCase): +class TestBooleanType(TestCase): def test_invalid(self): self.assertRaises(ValueError, create, '', 'boolean') self.assertRaises(ValueError, create, 'foo', 'boolean') @@ -31,7 +31,7 @@ class TestBooleanType(OESelftestTestCase): self.assertEqual(create('y', 'boolean'), True) self.assertNotEqual(create('y', 'boolean'), False) -class TestList(OESelftestTestCase): +class TestList(TestCase): def assertListEqual(self, value, valid, sep=None): obj = create(value, 'list', separator=sep) self.assertEqual(obj, valid) |