Skip to content

Commit 4c4f8af

Browse files
Remove blank lines after docstring (#174)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
1 parent f208617 commit 4c4f8af

2 files changed

Lines changed: 0 additions & 13 deletions

File tree

tests/main/test_http.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@ def test_sockets(self):
336336
https://github.com/mindflayer/python-mocket/issues/111
337337
https://gist.github.com/amotl/015ef6b336db55128798d7f1a9a67dea
338338
"""
339-
340339
# Define HTTP conversation.
341340
url = "http://127.0.0.1:8080/api/data"
342341
Entry.single_register(Entry.POST, url)

tests/main/test_httpretty.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
@httprettified
3636
def test_httpretty_should_mock_a_simple_get_with_requests_read():
3737
"""HTTPretty should mock a simple GET with requests.get"""
38-
3938
httpretty.register_uri(
4039
httpretty.GET, "http://yipit.com/", body="Find the best daily deals"
4140
)
@@ -49,7 +48,6 @@ def test_httpretty_should_mock_a_simple_get_with_requests_read():
4948
@httprettified
5049
def test_httpretty_provides_easy_access_to_querystrings():
5150
"""HTTPretty should provide an easy access to the querystring"""
52-
5351
HTTPretty.register_uri(
5452
HTTPretty.GET, "http://yipit.com/", body="Find the best daily deals"
5553
)
@@ -63,7 +61,6 @@ def test_httpretty_provides_easy_access_to_querystrings():
6361
@httprettified
6462
def test_httpretty_should_mock_headers_requests():
6563
"""HTTPretty should mock basic headers with requests"""
66-
6764
HTTPretty.register_uri(
6865
HTTPretty.GET,
6966
"http://github.com/",
@@ -89,7 +86,6 @@ def test_httpretty_should_mock_headers_requests():
8986
@httprettified
9087
def test_httpretty_should_allow_adding_and_overwritting_requests():
9188
"""HTTPretty should allow adding and overwritting headers with requests"""
92-
9389
HTTPretty.register_uri(
9490
HTTPretty.GET,
9591
"http://github.com/foo",
@@ -118,7 +114,6 @@ def test_httpretty_should_allow_adding_and_overwritting_requests():
118114
@httprettified
119115
def test_httpretty_should_allow_forcing_headers_requests():
120116
"""HTTPretty should allow forcing headers with requests"""
121-
122117
HTTPretty.register_uri(
123118
HTTPretty.GET,
124119
"http://github.com/foo",
@@ -137,7 +132,6 @@ def test_httpretty_should_allow_forcing_headers_requests():
137132
def test_httpretty_should_allow_adding_and_overwritting_by_kwargs_u2():
138133
"""HTTPretty should allow adding and overwritting headers by keyword args " \
139134
"with requests"""
140-
141135
HTTPretty.register_uri(
142136
HTTPretty.GET,
143137
"http://github.com/foo",
@@ -164,7 +158,6 @@ def test_httpretty_should_allow_adding_and_overwritting_by_kwargs_u2():
164158
@httprettified
165159
def test_rotating_responses_with_requests():
166160
"""HTTPretty should support rotating responses with requests"""
167-
168161
HTTPretty.register_uri(
169162
HTTPretty.GET,
170163
"https://api.yahoo.com/test",
@@ -193,7 +186,6 @@ def test_rotating_responses_with_requests():
193186
@httprettified
194187
def test_can_inspect_last_request():
195188
"""HTTPretty.last_request is a mimetools.Message request from last match"""
196-
197189
HTTPretty.register_uri(
198190
HTTPretty.POST,
199191
"http://api.github.com/",
@@ -215,7 +207,6 @@ def test_can_inspect_last_request():
215207
@httprettified
216208
def test_can_inspect_last_request_with_ssl():
217209
"""HTTPretty.last_request is recorded even when mocking 'https' (SSL)"""
218-
219210
HTTPretty.register_uri(
220211
HTTPretty.POST,
221212
"https://secure.github.com/",
@@ -237,7 +228,6 @@ def test_can_inspect_last_request_with_ssl():
237228
@httprettified
238229
def test_httpretty_ignores_querystrings_from_registered_uri():
239230
"""HTTPretty should ignore querystrings from the registered uri (requests library)"""
240-
241231
HTTPretty.register_uri(
242232
HTTPretty.GET, "http://yipit.com/?id=123", body=b"Find the best daily deals"
243233
)
@@ -299,7 +289,6 @@ def test_multipart():
299289
@httprettified
300290
def test_httpretty_should_allow_multiple_methods_for_the_same_uri():
301291
"""HTTPretty should allow registering multiple methods for the same uri"""
302-
303292
url = "http://test.com/test"
304293
methods = ["GET", "POST", "PUT", "OPTIONS"]
305294
for method in methods:
@@ -313,7 +302,6 @@ def test_httpretty_should_allow_multiple_methods_for_the_same_uri():
313302
@httprettified
314303
def test_httpretty_should_allow_multiple_responses_with_multiple_methods():
315304
"""HTTPretty should allow multiple responses when binding multiple methods to the same uri"""
316-
317305
url = "http://test.com/list"
318306

319307
# add get responses

0 commit comments

Comments
 (0)