def test_patch_service_keep_environments_when_not_in_request(self):
        service = self.services[0]
        environments_ids = [env.id for env in service.environments.all()]
        service_env_ids = [
            se.id for se in service.serviceenvironment_set.all()
        ]
        url = reverse('service-detail', args=(service.id,))
        data = {
            'name': 'test-service-2',
        }
        response = self.client.patch(url, data, format='json')
        self.assertEqual(response.status_code, status.HTTP_200_OK)
        service.refresh_from_db()
        self.assertEqual(service.name, 'test-service-2')
        new_environments_ids = [env.id for env in service.environments.all()]
        new_service_env_ids = [
            se.id for se in service.serviceenvironment_set.all()
        ]
        self.assertCountEqual(environments_ids, new_environments_ids)
        self.assertCountEqual(service_env_ids, new_service_env_ids)
Return information about the requested capability from this list
dataset/ETHPy150Open allegro/ralph/src/ralph/assets/tests/test_api.py/ServicesEnvironmentsAPITests.test_patch_service_keep_environments_when_not_in_request--crossover with--dataset/ETHPy150Open resync/resync/resync/capability_list.py/CapabilityList.capability_info