We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c0ab6a commit 752ce79Copy full SHA for 752ce79
1 file changed
src/maxdiffusion/tests/ltx2/test_pipeline_ltx2.py
@@ -118,9 +118,13 @@ def test_check_inputs(self):
118
with self.assertRaises(ValueError):
119
pipeline.check_inputs(prompt="test", height=64, width=63)
120
121
+ @patch("maxdiffusion.pipelines.ltx2.ltx2_pipeline.get_tpu_type")
122
@patch("maxdiffusion.pipelines.ltx2.ltx2_pipeline.LTX2Pipeline._get_gemma_prompt_embeds")
- def test_encode_prompt(self, list_embed_mock):
123
+ def test_encode_prompt(self, list_embed_mock, mock_get_tpu_type):
124
"""Test conditional encoding of positive and negative prompts."""
125
+ from maxdiffusion.tpu_utils import TpuType
126
+ mock_get_tpu_type.return_value = TpuType.TPU_7X
127
+
128
pipeline = LTX2Pipeline(
129
scheduler=MagicMock(),
130
vae=MagicMock(),
0 commit comments