Skip to content

Commit 926ea96

Browse files
committed
remove cffi python testtest_webxdc_download_on_demand
1 parent c99c2a3 commit 926ea96

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

python/tests/test_1_online.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -222,38 +222,6 @@ def test_webxdc_huge_update(acfactory, data, lp):
222222
assert update["payload"] == payload
223223

224224

225-
def test_webxdc_download_on_demand(acfactory, data, lp):
226-
ac1, ac2 = acfactory.get_online_accounts(2)
227-
acfactory.introduce_each_other([ac1, ac2])
228-
chat = acfactory.get_accepted_chat(ac1, ac2)
229-
230-
msg1 = Message.new_empty(ac1, "webxdc")
231-
msg1.set_text("message1")
232-
msg1.set_file(data.get_path("webxdc/minimal.xdc"))
233-
msg1 = chat.send_msg(msg1)
234-
assert msg1.is_webxdc()
235-
assert msg1.filename
236-
237-
msg2 = ac2._evtracker.wait_next_incoming_message()
238-
assert msg2.is_webxdc()
239-
240-
lp.sec("ac2 sets download limit")
241-
ac2.set_config("download_limit", "100")
242-
assert msg1.send_status_update({"payload": base64.b64encode(os.urandom(300000))}, "some test data")
243-
ac2_update = ac2._evtracker.wait_next_incoming_message()
244-
assert ac2_update.download_state == dc.const.DC_DOWNLOAD_AVAILABLE
245-
assert not msg2.get_status_updates()
246-
247-
ac2_update.download_full()
248-
ac2._evtracker.get_matching("DC_EVENT_WEBXDC_STATUS_UPDATE")
249-
assert msg2.get_status_updates()
250-
251-
# Get a event notifying that the message disappeared from the chat.
252-
msgs_changed_event = ac2._evtracker.get_matching("DC_EVENT_MSGS_CHANGED")
253-
assert msgs_changed_event.data1 == msg2.chat.id
254-
assert msgs_changed_event.data2 == 0
255-
256-
257225
def test_enable_mvbox_move(acfactory, lp):
258226
(ac1,) = acfactory.get_online_accounts(1)
259227

0 commit comments

Comments
 (0)