Skip to content

Commit 62ca1b3

Browse files
committed
Handle test nit by removing the temporary file
1 parent e5369e0 commit 62ca1b3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/test_client.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -1428,14 +1428,12 @@ def test_add_attachment_guesses_mimetype(record_setup: Client, tmp_path):
14281428
client = record_setup
14291429
mock_response(client.session)
14301430

1431-
p = tmp_path / "file.txt"
1432-
p.write_text("hello")
14331431
with patch("builtins.open", mock_open(read_data="hello")) as mock_file:
14341432
client.add_attachment(
14351433
id="abc",
14361434
bucket="a",
14371435
collection="b",
1438-
filepath=p,
1436+
filepath="file.txt",
14391437
)
14401438

14411439
client.session.request.assert_called_with(

0 commit comments

Comments
 (0)