You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by gu...@apache.org on 2026/01/12 02:22:30 UTC

(mahout) 02/02: add import test

This is an automated email from the ASF dual-hosted git repository.

guanmingchiu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/mahout.git

commit 7fe53eac4029f58c3af6eaca2796d699d5a075e4
Author: rich7420 <rc...@gmail.com>
AuthorDate: Sat Jan 3 22:56:35 2026 +0800

    add import test
---
 qdp/qdp-python/tests/test_bindings.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/qdp/qdp-python/tests/test_bindings.py b/qdp/qdp-python/tests/test_bindings.py
index ea23aceb7..763860ad6 100644
--- a/qdp/qdp-python/tests/test_bindings.py
+++ b/qdp/qdp-python/tests/test_bindings.py
@@ -35,6 +35,12 @@ def test_import():
     assert hasattr(mahout_qdp, "QdpEngine")
     assert hasattr(mahout_qdp, "QuantumTensor")
 
+    # Test that QdpEngine has the new encode_from_tensorflow method
+    from mahout_qdp import QdpEngine
+
+    assert hasattr(QdpEngine, "encode_from_tensorflow")
+    assert callable(getattr(QdpEngine, "encode_from_tensorflow"))
+
 
 @pytest.mark.gpu
 def test_encode():