mirror of
https://github.com/superdesigndev/treg.git
synced 2026-10-02 03:24:35 +08:00
fix(catalog): align Fetchin profile miss settlement
This commit is contained in:
@@ -2771,7 +2771,7 @@ adapters:
|
||||
out: {full_name: "join(firstName, lastName)", first_name: firstName, last_name: lastName,
|
||||
headline: title, location: location, followers: followerCount, connections: connectionsCount,
|
||||
about: description, linkedin_url: url}
|
||||
miss: "id == null"
|
||||
miss: "coalesce(firstName, lastName) == null"
|
||||
fetchinio.linkedin.company.profile:
|
||||
accepts: [[linkedin_url], [linkedin_handle]]
|
||||
in: {linkedin_url: queryParams.companyUrlOrUrn, linkedin_handle: queryParams.companyUrlOrUrn}
|
||||
|
||||
@@ -196,6 +196,10 @@ def test_fetchin_linkedin_adapters_are_verified_and_routed():
|
||||
assert "fetchinio.linkedin.user.reactions" not in cat.adapters
|
||||
assert "fetchinio.linkedin.post.engagement" not in cat.adapters
|
||||
|
||||
profile = cat.adapters["fetchinio.linkedin.user.profile"]
|
||||
assert profile.is_miss({"id": "profile-id", "firstName": None, "lastName": None})
|
||||
assert not profile.is_miss({"id": "profile-id", "firstName": "Ada", "lastName": None})
|
||||
|
||||
|
||||
async def test_fetchin_member_posts_route_uses_adapter_and_settles(
|
||||
clients: AsyncClient, platform_on, monkeypatch,
|
||||
|
||||
Reference in New Issue
Block a user