refactor: make Following sync outcome explicit
This commit is contained in:
1 parent
6c12731215
commit
d3ba5975a0
3 files changed
+8
-1
No files matched your search
@@ -42,7 +42,12 @@ async def test_confirmed_watch_updates_account_following_collection(monkeypatch,
|
||||
following = await client.get("/api/v1/following")
|
||||
|
||||
assert watched.status_code == 200
|
||||
assert watched.json() == {"watching": True, "following_revision": 1, "following_count": 1}
|
||||
assert watched.json() == {
|
||||
"watching": True,
|
||||
"following_synced": True,
|
||||
"following_revision": 1,
|
||||
"following_count": 1,
|
||||
}
|
||||
assert following.status_code == 200
|
||||
assert following.headers["cache-control"] == "no-store"
|
||||
assert following.json() == {"revision": 1, "items": [{
|
||||
|
||||
@@ -285,6 +285,7 @@ async def test_search_preview_subscription_mutation_revalidates_target_and_confi
|
||||
expected_count = 1 if watching else 0
|
||||
assert response.json() == {
|
||||
"watching": watching,
|
||||
"following_synced": True,
|
||||
"following_revision": expected_count,
|
||||
"following_count": expected_count,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user