def test_patch_workflow(self):
        response = self.client.patch(
            reverse('motion-detail', args=[self.motion.pk]),
            {'workflow_id': '2'})

        motion = Motion.objects.get()
        self.assertEqual(response.status_code, status.HTTP_200_OK)
        self.assertEqual(motion.title, 'test_title_aeng7ahChie3waiR8xoh')
        self.assertEqual(motion.workflow, 2)
Tests to only update the workflow of a motion.
dataset/ETHPy150Open OpenSlides/OpenSlides/tests/integration/motions/test_viewset.py/UpdateMotion.test_patch_workflow