mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-04 04:19:35 +00:00
Fix Python unit tests.
This commit is contained in:
parent
467ec300e6
commit
66e40d839c
2 changed files with 3 additions and 3 deletions
|
|
@ -347,7 +347,7 @@ class CoreManager:
|
|||
|
||||
assert_equals(CoreManager.wait_for(callee_manager, caller_manager,
|
||||
lambda callee_manager, caller_manager: callee_manager.stats.number_of_LinphoneCallIncomingReceived == initial_callee_stats.number_of_LinphoneCallIncomingReceived + 1), True)
|
||||
assert_equals(callee_manager.lc.incoming_invite_pending, True)
|
||||
assert_equals(callee_manager.lc.is_incoming_invite_pending, True)
|
||||
assert_equals(caller_manager.stats.number_of_LinphoneCallOutgoingProgress, initial_caller_stats.number_of_LinphoneCallOutgoingProgress + 1)
|
||||
|
||||
retry = 0
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ class TestMessage:
|
|||
direction = 'received'
|
||||
tofrom = 'from'
|
||||
address = msg.from_address
|
||||
if msg.outgoing:
|
||||
if msg.is_outgoing:
|
||||
direction = 'sent'
|
||||
tofrom = 'to'
|
||||
address = msg.to_address
|
||||
|
|
@ -64,7 +64,7 @@ class TestMessage:
|
|||
def file_transfer_recv(cls, msg, content, buf):
|
||||
receive_filepath = msg.user_data
|
||||
stats = msg.chat_room.core.user_data().stats
|
||||
if buf.empty: # Transfer complete
|
||||
if buf.is_empty: # Transfer complete
|
||||
stats.number_of_LinphoneFileTransferDownloadSuccessful += 1
|
||||
else: # Store content
|
||||
f = open(receive_filepath, 'ab')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue