Skip to content

Commit 782e4e8

Browse files
committed
Change the HTTPMethod Enum.
1 parent 58936f5 commit 782e4e8

File tree

1 file changed

+10
-10
lines changed
  • instrumentation/opentelemetry-instrumentation-aiohttp-server/tests

1 file changed

+10
-10
lines changed

instrumentation/opentelemetry-instrumentation-aiohttp-server/tests/utils.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ class HTTPMethod(Enum):
1919
"""HTTP methods and descriptions"""
2020

2121
def __repr__(self):
22-
return self.value[0]
22+
return f"{self.value}"
2323

24-
CONNECT = 'CONNECT', 'Establish a connection to the server.'
25-
DELETE = 'DELETE', 'Remove the target.'
26-
GET = 'GET', 'Retrieve the target.'
27-
HEAD = 'HEAD', 'Same as GET, but only retrieve the status line and header section.'
28-
OPTIONS = 'OPTIONS', 'Describe the communication options for the target.'
29-
PATCH = 'PATCH', 'Apply partial modifications to a target.'
30-
POST = 'POST', 'Perform target-specific processing with the request payload.'
31-
PUT = 'PUT', 'Replace the target with the request payload.'
32-
TRACE = 'TRACE', 'Perform a message loop-back test along the path to the target.'
24+
CONNECT = 'CONNECT'
25+
DELETE = 'DELETE'
26+
GET = 'GET'
27+
HEAD = 'HEAD'
28+
OPTIONS = 'OPTIONS'
29+
PATCH = 'PATCH'
30+
POST = 'POST'
31+
PUT = 'PUT'
32+
TRACE = 'TRACE'

0 commit comments

Comments
 (0)