INNER CODE UNIT · Python
selected
spantaleev/matrix-docker-ansible-deploy · bin/test-molecule-select-roles.py:80
def selected(self, base=None):
self.commit()
with contextlib.redirect_stderr(io.StringIO()):
return selector.select_roles(self.git, base or self.base)
def test_livekit_bump_only_runs_its_consumer(self):
self.bump("livekit")
self.assertEqual(self.selected(), ["matrix-livekit"])
def test_postgres_bump_follows_shared_task(self):
self.bump("postgres")
self.assertEqual(self.selected(), ["matrix-database"])
def test_curl_bump_runs_every_consumer(self):
self.bump("curl")
self.assertEqual(self.selected(), self.roles)
def test_multiple_image_bumps_union_with_direct_role_changes(self):