Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
liblinphone
Commits
66e40d83
Commit
66e40d83
authored
Mar 02, 2017
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Python unit tests.
parent
467ec300
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
tools/python/unittests/linphonetester.py
tools/python/unittests/linphonetester.py
+1
-1
tools/python/unittests/test_message.py
tools/python/unittests/test_message.py
+2
-2
No files found.
tools/python/unittests/linphonetester.py
View file @
66e40d83
...
...
@@ -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
...
...
tools/python/unittests/test_message.py
View file @
66e40d83
...
...
@@ -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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment