test: remove unittest dependency for OSBuild

Remove the dependency on unittest for the `OSBuild` class which
used the `unittest` instance only for `assertEqual`, which can
easily also be done via a plain `assert`.
This commit is contained in:
Christian Kellner 2021-06-07 22:00:55 +00:00
parent aa00e62fed
commit a47a40cf26
6 changed files with 10 additions and 11 deletions

View file

@ -33,9 +33,10 @@ NOOP_V2 = {
]
}
class TestNoop(unittest.TestCase):
def setUp(self):
self.osbuild = test.OSBuild(self)
self.osbuild = test.OSBuild()
def test_noop(self):
#
@ -55,7 +56,6 @@ class TestNoop(unittest.TestCase):
osb.compile("{}")
osb.compile("{}")
def test_noop_v2(self):
with tempfile.TemporaryDirectory() as tmp:
with self.osbuild as osb: