make wheel building work again -- switch manylinux2014 (#1522)

This commit is contained in:
holger krekel
2020-05-23 21:57:50 +02:00
committed by GitHub
parent 0ea442ca36
commit d4ddc2f9da
9 changed files with 54 additions and 14 deletions

View File

@@ -10,4 +10,6 @@ if __name__ == "__main__":
for relpath in os.listdir(workspacedir):
if relpath.startswith("deltachat"):
p = os.path.join(workspacedir, relpath)
subprocess.check_call(["auditwheel", "repair", p, "-w", workspacedir])
subprocess.check_call(
["auditwheel", "repair", p, "-w", workspacedir,
"--plat", "manylinux2014_x86_64"])

View File

@@ -1064,6 +1064,38 @@ class TestOnlineAccount:
assert mime.get_all("From")
assert mime.get_all("Received")
@pytest.mark.xfail(reason="core emits wrong DC_EVENT_INCOMING_MSG event")
def test_send_mark_seen_clean_incoming_events(self, acfactory, lp, data):
ac1, ac2 = acfactory.get_two_online_accounts()
chat = self.get_chat(ac1, ac2, both_created=True)
message_queue = queue.Queue()
class InPlugin:
@account_hookimpl
def ac_incoming_message(self, message):
message_queue.put(message)
ac1.add_account_plugin(InPlugin())
lp.sec("sending one message from ac1 to ac2")
chat.send_text("hello")
lp.sec("ac2: waiting to receive")
msg = ac2._evtracker.wait_next_incoming_message()
assert msg.text == "hello"
lp.sec("ac2: mark seen {}".format(msg))
msg.mark_seen()
lp.sec("ac2: send echo message")
msg.chat.send_text("world")
lp.sec("ac1: waiting for echo message")
incoming = message_queue.get(timeout=10)
assert incoming.text == "world"
assert msg.is_in_seen()
def test_send_and_receive_image(self, acfactory, lp, data):
ac1, ac2 = acfactory.get_two_online_accounts()
chat = self.get_chat(ac1, ac2)