Skip to content

Commit 53a5196

Browse files
delete redundant mocks
1 parent 6ae9a61 commit 53a5196

File tree

1 file changed

+0
-62
lines changed

1 file changed

+0
-62
lines changed

unit_tests/sources/declarative/incremental/test_concurrent_perpartitioncursor.py

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,41 +1514,14 @@ def run_incremental_parent_state_test(
15141514
f"?per_page=100&start_time={INITIAL_STATE_PARTITION_11_CURSOR}",
15151515
{"votes": [{"id": 111, "comment_id": 11, "created_at": VOTE_111_CREATED_AT}]},
15161516
),
1517-
# Fetch the first page of votes for comment 12 of post 1
1518-
(
1519-
f"https://api.example.com/community/posts/1/comments/12/votes?per_page=100&start_time={LOOKBACK_DATE}",
1520-
{"votes": []},
1521-
),
1522-
# Fetch the first page of comments for post 2
1523-
(
1524-
"https://api.example.com/community/posts/2/comments?per_page=100",
1525-
{
1526-
"comments": [{"id": 20, "post_id": 2, "updated_at": COMMENT_20_UPDATED_AT}],
1527-
"next_page": "https://api.example.com/community/posts/2/comments?per_page=100&page=2",
1528-
},
1529-
),
15301517
# Requests with intermediate states
1531-
# Fetch votes for comment 10 of post 1
1532-
(
1533-
f"https://api.example.com/community/posts/1/comments/10/votes?per_page=100&start_time={VOTE_100_CREATED_AT}",
1534-
{
1535-
"votes": [{"id": 100, "comment_id": 10, "created_at": VOTE_100_CREATED_AT}],
1536-
},
1537-
),
15381518
# Fetch votes for comment 11 of post 1
15391519
(
15401520
f"https://api.example.com/community/posts/1/comments/11/votes?per_page=100&start_time={VOTE_111_CREATED_AT}",
15411521
{
15421522
"votes": [{"id": 111, "comment_id": 11, "created_at": VOTE_111_CREATED_AT}],
15431523
},
15441524
),
1545-
# Fetch votes for comment 12 of post 1
1546-
(
1547-
f"https://api.example.com/community/posts/1/comments/12/votes?per_page=100&start_time={VOTE_111_CREATED_AT}",
1548-
{
1549-
"votes": [],
1550-
},
1551-
),
15521525
],
15531526
# Expected records
15541527
[
@@ -1682,41 +1655,6 @@ def run_incremental_parent_state_test(
16821655
f"?per_page=100&start_time={INITIAL_STATE_PARTITION_11_CURSOR}",
16831656
{"votes": [{"id": 111, "comment_id": 11}]},
16841657
),
1685-
# Fetch the first page of votes for comment 12 of post 1
1686-
(
1687-
f"https://api.example.com/community/posts/1/comments/12/votes?per_page=100&start_time={LOOKBACK_DATE}",
1688-
{"votes": []},
1689-
),
1690-
# Fetch the first page of comments for post 2
1691-
(
1692-
"https://api.example.com/community/posts/2/comments?per_page=100",
1693-
{
1694-
"comments": [{"id": 20, "post_id": 2, "updated_at": COMMENT_20_UPDATED_AT}],
1695-
"next_page": "https://api.example.com/community/posts/2/comments?per_page=100&page=2",
1696-
},
1697-
),
1698-
# Requests with intermediate states
1699-
# Fetch votes for comment 10 of post 1
1700-
(
1701-
f"https://api.example.com/community/posts/1/comments/10/votes?per_page=100&start_time={VOTE_100_CREATED_AT}",
1702-
{
1703-
"votes": [{"id": 100, "comment_id": 10, "created_at": VOTE_100_CREATED_AT}],
1704-
},
1705-
),
1706-
# Fetch votes for comment 11 of post 1
1707-
(
1708-
f"https://api.example.com/community/posts/1/comments/11/votes?per_page=100&start_time={VOTE_111_CREATED_AT}",
1709-
{
1710-
"votes": [{"id": 111, "comment_id": 11, "created_at": VOTE_111_CREATED_AT}],
1711-
},
1712-
),
1713-
# Fetch votes for comment 12 of post 1
1714-
(
1715-
f"https://api.example.com/community/posts/1/comments/12/votes?per_page=100&start_time={VOTE_111_CREATED_AT}",
1716-
{
1717-
"votes": [],
1718-
},
1719-
),
17201658
],
17211659
# Expected records
17221660
[

0 commit comments

Comments
 (0)