Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 11, 2023
1 parent 71d622d commit f789f5a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions csv2http/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,11 @@ async def execute(args: cli.Args, **client_kwargs) -> int:
async with httpx.AsyncClient(
auth=args.auth, headers=args.headers, timeout=args.timeout, **client_kwargs
) as client_session:

print(f" {args.method} {args.url}")

for paylod_batch in chunker(
parser.csv_payload_generator(file_input), chunk_size=args.concurrency
):

responses = await parrelelize_requests(
args.method,
args.url,
Expand Down
2 changes: 0 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def http_reflect():
# TODO: make http_reflect_airgap
# pylint: disable=not-context-manager
with respx.mock(assert_all_called=False, assert_all_mocked=True) as respx_mock:

respx_mock.route(method__in=["POST", "PUT", "PATCH"]).mock(
side_effect=_reflect_request
)
Expand All @@ -57,7 +56,6 @@ def http_reflect_random_status():
"""Randomize status codes. Return all outgoing http request's payload as a response."""
# pylint: disable=not-context-manager
with respx.mock(assert_all_called=False, assert_all_mocked=True) as respx_mock:

respx_mock.route(method__in=["POST", "PUT", "PATCH"]).mock(
side_effect=_reflect_request_random_status
)
Expand Down
1 change: 0 additions & 1 deletion tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ async def test_parrelelize_requests(http_reflect, csv_payload_generator_param_fx
async def test_main(
http_reflect_random_status, tmp_log_files: pathlib.Path, sample_csv: pathlib.Path
):

total = await core.execute(
cli.Args(
sample_csv,
Expand Down

0 comments on commit f789f5a

Please sign in to comment.