def test_patch_export(self):
        """Tests that exports can be patched."""
        patch_data = {
            "name": "RandomExport",
            "template_name": "RandomTemplate",
            "ignore_tags": ["ignore_new"],
        }
        response = client.patch(
            "/api/v2/tasks/export/RandomExport", json={"export": patch_data}
        )

        data = response.json()
        self.assertEqual(response.status_code, 200, data)
        self.assertEqual(data["name"], "RandomExport")
        self.assertEqual(data["ignore_tags"], ["ignore_new"])
Tests that exports can be patched.
tests/apiv2/tasks.py