Skip to content

Commit 7e7af59

Browse files
committed
more test
1 parent f03a105 commit 7e7af59

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/remote/test_remote_decode.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,25 @@ def test_do_scaling_deprecation(self):
113113
str(warning.warnings[0].message),
114114
)
115115

116+
def test_input_tensor_type_base64_deprecation(self):
117+
inputs = self.get_dummy_inputs()
118+
with self.assertWarns(FutureWarning) as warning:
119+
_ = remote_decode(output_type="pt", input_tensor_type="base64", partial_postprocess=True, **inputs)
120+
self.assertEqual(
121+
str(warning.warnings[0].message),
122+
"input_tensor_type='base64' is deprecated. Using `binary`.",
123+
str(warning.warnings[0].message),
124+
)
125+
126+
def test_output_tensor_type_base64_deprecation(self):
127+
inputs = self.get_dummy_inputs()
128+
with self.assertWarns(FutureWarning) as warning:
129+
_ = remote_decode(output_type="pt", output_tensor_type="base64", partial_postprocess=True, **inputs)
130+
self.assertEqual(
131+
str(warning.warnings[0].message),
132+
"output_tensor_type='base64' is deprecated. Using `binary`.",
133+
str(warning.warnings[0].message),
134+
)
116135

117136
class RemoteAutoencoderKLSDv1Tests(
118137
RemoteAutoencoderKLMixin,

0 commit comments

Comments
 (0)