| 1234567891011121314151617181920212223242526272829303132333435363738 |
- """KOC 模块 — 真实联调(API-17/18 外部联系人)"""
- import pytest
- pytestmark = [pytest.mark.integration, pytest.mark.qiwei_live]
- def test_live_contacts_sync(api, live_guid):
- data = api.assert_success(
- api.post(
- "/contacts/sync",
- json={"guid": live_guid, "currentSeq": 0, "limit": 20},
- )
- )
- assert "contacts" in data
- assert "hasMore" in data
- assert isinstance(data["contacts"], list)
- def test_live_contacts_list_after_sync(api, live_guid):
- api.assert_success(
- api.post("/contacts/sync", json={"guid": live_guid, "currentSeq": 0, "limit": 10})
- )
- listed = api.assert_success(api.get("/contacts"))
- assert isinstance(listed, list)
- def test_live_proxy_wx_contact_list(api, live_guid):
- data = api.assert_success(
- api.post(
- "/qiwei/proxy",
- json={
- "method": "/contact/getWxContactList",
- "params": {"guid": live_guid, "currentSeq": 0, "limit": 10, "bizType": 1},
- },
- )
- )
- assert isinstance(data, dict)
|