def test_search_export(self):
        """Tests that exports can be searched."""
        response = client.post(
            "/api/v2/tasks/search", json={"query": {"name": "RandomExport"}}
        )
        data = response.json()
        self.assertEqual(response.status_code, 200, data)
        self.assertEqual(data["tasks"][0]["name"], "RandomExport")
        self.assertEqual(data["tasks"][0]["type"], "export")
        self.assertEqual(data["tasks"][0]["ignore_tags"], ["ignore"])
        self.assertEqual(data["total"], 1)
Tests that exports can be searched.
tests/apiv2/tasks.py