/ justapi / tests / test_buffer.py
swadhinbiswas test: add end-to-end integration test suite with gRPC and proto stubs · 7/9/2026
43e015f
12 lines · 334 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
import sys
sys.path.insert(0, "/home/swadhin/RastAPI/crates/justapi-py")
import justapi

print("Testing buffer...")
try:
    buf = justapi._justapi._test_zero_copy(b"Hello from Rust Zero-Copy Buffer!")
    mv = memoryview(buf)
    print("Memoryview created successfully:", mv.tobytes())
except Exception as e:
    print("Failed:", e)