Skip to content

Commit 7df21f2

Browse files
committed
-save
1 parent b10ea13 commit 7df21f2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tests/remote/test_remote_decode.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ def test_no_scaling(self):
8181
**inputs,
8282
)
8383
assert isinstance(output, PIL.Image.Image)
84-
output.save("test_no_scaling.png")
8584
self.assertTrue(isinstance(output, PIL.Image.Image), f"Expected `PIL.Image.Image` output, got {type(output)}")
8685
self.assertEqual(output.height, self.out_hw[0], f"Expected image height {self.out_hw[0]}, got {output.height}")
8786
self.assertEqual(output.width, self.out_hw[1], f"Expected image width {self.out_hw[0]}, got {output.width}")
@@ -97,7 +96,6 @@ def test_output_type_pt(self):
9796
processor = self.processor_cls()
9897
output = remote_decode(output_type="pt", processor=processor, **inputs)
9998
assert isinstance(output, PIL.Image.Image)
100-
output.save("test_output_type_pt.png")
10199
self.assertTrue(isinstance(output, PIL.Image.Image), f"Expected `PIL.Image.Image` output, got {type(output)}")
102100
self.assertEqual(output.height, self.out_hw[0], f"Expected image height {self.out_hw[0]}, got {output.height}")
103101
self.assertEqual(output.width, self.out_hw[1], f"Expected image width {self.out_hw[0]}, got {output.width}")
@@ -110,15 +108,13 @@ def test_output_type_pt(self):
110108
def test_output_type_pil(self):
111109
inputs = self.get_dummy_inputs()
112110
output = remote_decode(output_type="pil", **inputs)
113-
output.save("test_output_type_pil.png")
114111
self.assertTrue(isinstance(output, PIL.Image.Image), f"Expected `PIL.Image.Image` output, got {type(output)}")
115112
self.assertEqual(output.height, self.out_hw[0], f"Expected image height {self.out_hw[0]}, got {output.height}")
116113
self.assertEqual(output.width, self.out_hw[1], f"Expected image width {self.out_hw[0]}, got {output.width}")
117114

118115
def test_output_type_pil_image_format(self):
119116
inputs = self.get_dummy_inputs()
120117
output = remote_decode(output_type="pil", image_format="png", **inputs)
121-
output.save("test_output_type_pil_image_format.png")
122118
self.assertTrue(isinstance(output, PIL.Image.Image), f"Expected `PIL.Image.Image` output, got {type(output)}")
123119
self.assertEqual(output.height, self.out_hw[0], f"Expected image height {self.out_hw[0]}, got {output.height}")
124120
self.assertEqual(output.width, self.out_hw[1], f"Expected image width {self.out_hw[0]}, got {output.width}")
@@ -131,7 +127,6 @@ def test_output_type_pil_image_format(self):
131127
def test_output_type_pt_partial_postprocess(self):
132128
inputs = self.get_dummy_inputs()
133129
output = remote_decode(output_type="pt", partial_postprocess=True, **inputs)
134-
output.save("test_output_type_pt_partial_postprocess.png")
135130
self.assertTrue(isinstance(output, PIL.Image.Image), f"Expected `PIL.Image.Image` output, got {type(output)}")
136131
self.assertEqual(output.height, self.out_hw[0], f"Expected image height {self.out_hw[0]}, got {output.height}")
137132
self.assertEqual(output.width, self.out_hw[1], f"Expected image width {self.out_hw[0]}, got {output.width}")

0 commit comments

Comments
 (0)