test: fix executable test

During the rework done in commit "use and require explicit exports"
with commit id 7ae4a7e78, the test got overlooked. Add an empty
list of checkpoints to the `obs.compile` invocation as to actually
trigger the osbuild invocation.

Reported-By: Thomas Lavocat <tlavocat@redhat.com>
This commit is contained in:
Christian Kellner 2022-02-09 16:47:51 +00:00 committed by Tom Gundersen
parent ed82f33c8f
commit f7af3042ca

View file

@ -17,7 +17,7 @@ class TestExecutable(unittest.TestCase):
invalid = json.dumps({"foo": 42})
with self.osbuild as osb, self.assertRaises(subprocess.CalledProcessError) as e:
osb.compile(invalid, check=True)
osb.compile(invalid, checkpoints=[], check=True)
self.assertEqual(e.exception.returncode, 2)