[tests] to pass a list to _is_requirement_in_global_reqs()

When we call this from playbooks/files/project-requirements-change.py
we pass in a list[1].  Update the tests to use a list as well.

[1] built with list( dict().keys() )

Change-Id: I3b359a4afc24a7d0069a3531a1d69f87795af115
This commit is contained in:
Tony Breeds 2022-10-19 11:16:29 -05:00
parent 8412994369
commit 8037b316c7

View File

@ -26,7 +26,7 @@ class TestIsReqInGlobalReqs(testtools.TestCase):
self._stdout_fixture = fixtures.StringStream('stdout')
self.stdout = self.useFixture(self._stdout_fixture).stream
self.backports = set()
self.backports = list()
self.useFixture(fixtures.MonkeyPatch('sys.stdout', self.stdout))
self.global_reqs = check.get_global_reqs(textwrap.dedent("""
@ -88,7 +88,7 @@ class TestIsReqInGlobalReqs(testtools.TestCase):
check._is_requirement_in_global_reqs(
req,
self.global_reqs['name'],
{'name'},
['name'],
)
)