8000 Added assertion for calls with a HTTP delete · pljensen/github3.py@ffbc031 · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit ffbc031

Browse files
christophelecsigmavirus24
authored andcommitted
Added assertion for calls with a HTTP delete
1 parent 86ecfdf commit ffbc031

File tree

1 changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/unit/helper.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ def patch_called_with(self, *args, **kwargs):
114114
"""Use to assert patch was called with JSON."""
115115
self.method_called_with('patch', args, kwargs)
116116

117+
def delete_called_with(self, *args, **kwargs):
118+
"""Use to assert delete was called."""
119+
self.method_called_with('delete', args, kwargs)
120+
121+
117122
def post_called_with(self, *args, **kwargs):
118123
"""Use to assert post was called with JSON."""
119124
assert self.session.post.called is True

0 commit comments

Comments
 (0)
0