Skip to content

Commit

Permalink
fix(ci) Fix lint errors from additional ignores (#553)
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 3, 2022
1 parent ebf6811 commit 48f2729
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion responses/tests/test_matchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def run():
requests.post(
"http://httpbin.org/post",
data=req_data,
files={"file_name": b"New World!"}, # type: ignore[arg-type]
files={"file_name": b"New World!"},
)

msg = str(excinfo.value)
Expand Down
6 changes: 2 additions & 4 deletions responses/tests/test_responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,9 +717,7 @@ def run():
match=[matchers.multipart_matcher(req_files, data=req_data)],
callback=request_callback,
)
resp = requests.post(
"http://httpbin.org/post", data=req_data, files=req_files # type: ignore[arg-type]
)
resp = requests.post("http://httpbin.org/post", data=req_data, files=req_files)
assert resp.text == "foo"
assert resp.headers["content-type"] == "application/json"

Expand Down Expand Up @@ -747,7 +745,7 @@ def run():
requests.post(
"http://httpbin.org/post",
data={"some": "other", "data": "wrong"},
files=req_files, # type: ignore[arg-type]
files=req_files,
)

assert "multipart/form-data doesn't match." in str(exc.value)
Expand Down

0 comments on commit 48f2729

Please sign in to comment.