rename to smartpack n smartunpack
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"""
|
||||
Python Mix Payloads Sender Test
|
||||
Tests the smartsend function with mixed payload types
|
||||
Tests the smartpack function with mixed payload types
|
||||
"""
|
||||
|
||||
import asyncio
|
||||
@@ -11,7 +11,7 @@ import base64
|
||||
# Add parent directory to path
|
||||
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
|
||||
from msghandler import smartsend, DEFAULT_BROKER_URL, DEFAULT_FILESERVER_URL
|
||||
from msghandler import smartpack, DEFAULT_BROKER_URL, DEFAULT_FILESERVER_URL
|
||||
|
||||
TEST_SUBJECT = '/test/mix'
|
||||
TEST_BROKER_URL = os.environ.get('NATS_URL', 'nats://localhost:4222')
|
||||
@@ -56,7 +56,7 @@ async def run_test():
|
||||
try:
|
||||
# Send the message
|
||||
print('Sending mixed payloads...')
|
||||
env, env_json_str = await smartsend(
|
||||
env, env_json_str = await smartpack(
|
||||
TEST_SUBJECT,
|
||||
test_data,
|
||||
broker_url=TEST_BROKER_URL,
|
||||
@@ -164,7 +164,7 @@ async def run_test():
|
||||
('audio', bytes([0x46, 0x4C, 0x41, 0x43]), 'audio')
|
||||
]
|
||||
|
||||
chat_env, _ = await smartsend(
|
||||
chat_env, _ = await smartpack(
|
||||
TEST_SUBJECT,
|
||||
chat_data,
|
||||
broker_url=TEST_BROKER_URL,
|
||||
|
||||
Reference in New Issue
Block a user