Merge pull request #498 from carpedm20/rename-uid

Rename .uid to .id
This commit is contained in:
Mads Marquart
2020-01-09 10:58:46 +01:00
committed by GitHub
35 changed files with 208 additions and 197 deletions

View File

@@ -17,7 +17,7 @@ def test_user_from_graphql():
"viewer_affinity": 0.4560002,
}
assert User(
uid="1234",
id="1234",
photo=fbchat.Image(url="https://scontent-arn2-1.xx.fbcdn.net/v/..."),
name="Abc Def Ghi",
url="https://www.facebook.com/profile.php?id=1234",
@@ -138,7 +138,7 @@ def test_user_from_thread_fetch():
"delivery_receipts": ...,
}
assert User(
uid="1234",
id="1234",
photo=fbchat.Image(url="https://scontent-arn2-1.xx.fbcdn.net/v/..."),
name="Abc Def Ghi",
last_active=datetime.datetime(2017, 7, 14, 2, 40, tzinfo=datetime.timezone.utc),
@@ -176,7 +176,7 @@ def test_user_from_all_fetch():
"is_blocked": False,
}
assert User(
uid="1234",
id="1234",
photo=fbchat.Image(url="https://scontent-arn2-1.xx.fbcdn.net/v/..."),
name="Abc Def Ghi",
url="https://www.facebook.com/profile.php?id=1234",