Skip to content

Commit 994cacf

Browse files
Ihor BilousIhor Bilous
authored andcommitted
Fix typo for DELETE http method
1 parent 16ac0ab commit 994cacf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mailtrap/api/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class HttpMethod(Enum):
1414
POST = "POST"
1515
PUT = "PUT"
1616
PATCH = "PATCH"
17-
DELTE = "DELETE"
17+
DELETE = "DELETE"
1818

1919

2020
def _extract_errors(data: Dict[str, Any]) -> List[str]:

mailtrap/api/projects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def update(self, account_id: str, project_id: str, name: str) -> Project:
4444

4545
def delete(self, account_id: str, project_id: str) -> DeletedObject:
4646
response: RESPONSE_TYPE = cast(RESPONSE_TYPE, self._request(
47-
HttpMethod.DELTE,
47+
HttpMethod.DELETE,
4848
self._build_url(account_id, project_id),
4949
))
5050
return DeletedObject(response["id"])

0 commit comments

Comments
 (0)