get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/96726/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 96726,
    "url": "http://patches.dpdk.org/api/patches/96726/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20210809112404.7199-1-ohilyard@iol.unh.edu/",
    "project": {
        "id": 3,
        "url": "http://patches.dpdk.org/api/projects/3/?format=api",
        "name": "DTS",
        "link_name": "dts",
        "list_id": "dts.dpdk.org",
        "list_email": "dts@dpdk.org",
        "web_url": "",
        "scm_url": "git://dpdk.org/tools/dts",
        "webscm_url": "http://git.dpdk.org/tools/dts/",
        "list_archive_url": "https://inbox.dpdk.org/dts",
        "list_archive_url_format": "https://inbox.dpdk.org/dts/{}",
        "commit_url_format": ""
    },
    "msgid": "<20210809112404.7199-1-ohilyard@iol.unh.edu>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20210809112404.7199-1-ohilyard@iol.unh.edu",
    "date": "2021-08-09T11:24:02",
    "name": "[1/3] framework/test_result: Fix circular import",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "43246fd98abfdde908aed9a7a70de042113ce6a2",
    "submitter": {
        "id": 1829,
        "url": "http://patches.dpdk.org/api/people/1829/?format=api",
        "name": "Owen Hilyard",
        "email": "ohilyard@iol.unh.edu"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/20210809112404.7199-1-ohilyard@iol.unh.edu/mbox/",
    "series": [
        {
            "id": 18234,
            "url": "http://patches.dpdk.org/api/series/18234/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=18234",
            "date": "2021-08-09T11:24:02",
            "name": "[1/3] framework/test_result: Fix circular import",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/18234/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/96726/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/96726/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dts-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id E5F0BA0C4C;\n\tMon,  9 Aug 2021 13:24:08 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id BF9874003D;\n\tMon,  9 Aug 2021 13:24:08 +0200 (CEST)",
            "from mail-oi1-f228.google.com (mail-oi1-f228.google.com\n [209.85.167.228])\n by mails.dpdk.org (Postfix) with ESMTP id 1D91A4003C\n for <dts@dpdk.org>; Mon,  9 Aug 2021 13:24:06 +0200 (CEST)",
            "by mail-oi1-f228.google.com with SMTP id h11so7761373oie.0\n for <dts@dpdk.org>; Mon, 09 Aug 2021 04:24:06 -0700 (PDT)",
            "from postal.iol.unh.edu (postal.iol.unh.edu.\n [2606:4100:3880:1234::84])\n by smtp-relay.gmail.com with ESMTPS id l17sm3696536otu.9.2021.08.09.04.24.06\n (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);\n Mon, 09 Aug 2021 04:24:06 -0700 (PDT)",
            "from iol.unh.edu (unknown\n [IPv6:2606:4100:3880:1220:6f7f:5992:405a:bfd7])\n by postal.iol.unh.edu (Postfix) with ESMTP id A64C5605248B;\n Mon,  9 Aug 2021 07:24:05 -0400 (EDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu;\n s=unh-iol;\n h=from:to:cc:subject:date:message-id:mime-version\n :content-transfer-encoding;\n bh=RHPQueSVEZgJ+RhWvCNE8wh1qmtkboPxW6k895Gheg0=;\n b=BxB4R+rjxuK6fRLq2lq4Cez1dX+dP1WkrwQB5tdUYX4iD3eSGUlCXY+kBURz2sNx7l\n NInGFsn5yWz6VV+Jinr/sTrcfy3NO3kbDnfEyw4/gNaqR4WQLtglqnLvcsQhsicchLg3\n 3jTJRpZqETUMzSIx/ZBPWbctVFd+w6gaPaZLE=",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20161025;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version\n :content-transfer-encoding;\n bh=RHPQueSVEZgJ+RhWvCNE8wh1qmtkboPxW6k895Gheg0=;\n b=hpx+WiCTU2lOO+hT4RvPAi334J09iUDAA6EI+zn+gtJUVPSRrMU7zOo6vU/xyPvZ/F\n LIfQQqtAapEaE8aBj4rODNzc4edUSiPULMU4FEE3NsCdgNsTrL4UiG5IcLlAy2q8aRAZ\n GbJ5/gzW15OwiMkREqJPYOCQ2wKLtMFCu9VdfMP/UCONxIGanXCB7OUofBgWilhb78h0\n jNWE9jFJy9xhWJLchClbHe727ZPwp+17Y+xgIVWKC9Dn7Wp6Py5lvyA61L78hfRUSejO\n UsPF0YQZVtRryTjz4d+zx/sHrx19HuMAV2M0Ndzga+eJNT+Puig/IXD3LDeMmL4vSzkF\n Q4WA==",
        "X-Gm-Message-State": "AOAM531A7CqxyoNDRBhssXkF8ojqaJXTvePC+DcFr1PZ74iiw32LbYFo\n +T+O82sgkWtttroHGeASw2kwlyoZPKITVOQ5VLfol6uBSToGhf+BhXg4NBvMfDDBxHhGzrTnryF\n UR99+jwo0eeuwTReo52KNvsCZ7O651wlR6vNn6wB6nUgGq7EJbS2tq7LQqK201vyK7DoKyV16Ed\n 4AgXMbqNaj2XuMyg==",
        "X-Google-Smtp-Source": "\n ABdhPJxTXRpGT7xFhCoyrLJPiZmYbilZvyGAIjJSNtpVlRzZaxHZ0h9obOS7n+pA4BzCOkg4NHspTxttO4ml",
        "X-Received": "by 2002:a05:6808:3c7:: with SMTP id\n o7mr23928871oie.115.1628508246262;\n Mon, 09 Aug 2021 04:24:06 -0700 (PDT)",
        "X-Relaying-Domain": "iol.unh.edu",
        "From": "ohilyard@iol.unh.edu",
        "To": "dts@dpdk.org",
        "Cc": "lijuan.tu@intel.com,\n\tOwen Hilyard <ohilyard@iol.unh.edu>",
        "Date": "Mon,  9 Aug 2021 07:24:02 -0400",
        "Message-Id": "<20210809112404.7199-1-ohilyard@iol.unh.edu>",
        "X-Mailer": "git-send-email 2.30.2",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dts] [PATCH 1/3] framework/test_result: Fix circular import",
        "X-BeenThere": "dts@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "test suite reviews and discussions <dts.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dts/>",
        "List-Post": "<mailto:dts@dpdk.org>",
        "List-Help": "<mailto:dts-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dts-bounces@dpdk.org",
        "Sender": "\"dts\" <dts-bounces@dpdk.org>"
    },
    "content": "From: Owen Hilyard <ohilyard@iol.unh.edu>\n\nThis circular import is normally fine because the debugger module is\ninitialized before test_case is imported, but since that is not\nnecessarily the case with the dependency script, the circular import\nneeded to be removed.\n\nSigned-off-by: Owen Hilyard <ohilyard@iol.unh.edu>\n---\n framework/test_case.py | 5 ++++-\n 1 file changed, 4 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/framework/test_case.py b/framework/test_case.py\nindex 98b716b9..3d7bc30e 100644\n--- a/framework/test_case.py\n+++ b/framework/test_case.py\n@@ -33,7 +33,6 @@\n A base class for creating DTF test cases.\n \"\"\"\n import re\n-import debugger\n import traceback\n import signal\n import time\n@@ -374,6 +373,10 @@ class TestCase(object):\n         \"\"\"\n         Execute all test cases in one suite.\n         \"\"\"\n+\n+        # local import to avoid circular import\n+        import debugger\n+\n         # prepare debugger rerun case environment\n         if self._enable_debug or self._debug_case:\n             debugger.AliveSuite = self\n",
    "prefixes": [
        "1/3"
    ]
}