mirror of
https://github.com/httpie/cli.git
synced 2025-08-11 05:04:10 +02:00
fix warning about unclosed file in TestItemParsing::test_valid_items
This commit is contained in:
@ -130,6 +130,8 @@ class TestItemParsing:
|
||||
assert (items.files['file'][1].read().strip().
|
||||
decode() == FILE_CONTENT)
|
||||
|
||||
items.files['file'][1].close()
|
||||
|
||||
def test_multiple_file_fields_with_same_field_name(self):
|
||||
items = RequestItems.from_args([
|
||||
self.key_value_arg('file_field@' + FILE_PATH_ARG),
|
||||
|
Reference in New Issue
Block a user