Skip to content
This repository was archived by the owner on May 16, 2025. It is now read-only.

Commit 65e73e2

Browse files
ci: correct from checks.
1 parent da516a2 commit 65e73e2

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

cbmc/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
Copyright (c) 2023 ItsRqtl
77
Licensed under the MIT License. See LICENSE for more details.
88
"""
9+
910
from .api import * # noqa: F403, F401
1011
from .exception import * # noqa: F403, F401
1112
from .post import * # noqa: F403, F401

tests/test_api.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,14 @@ def test_sync_get_posts() -> None:
151151
assert posts[0].post_id == 1703
152152
assert posts[0].platform_id == 2067
153153
assert posts[0].type == "靠北麥塊"
154-
assert posts[0].content == "確定某瑞只有跑去開GTA嗎?\r\n\r\n搞不好換了個名字 繼續開騙錢服 準備再次惡意倒閉呢\r\n\r\n呵呵呵~~"
155-
assert posts[0].__str__() == "確定某瑞只有跑去開GTA嗎?\r\n\r\n搞不好換了個名字 繼續開騙錢服 準備再次惡意倒閉呢\r\n\r\n呵呵呵~~"
154+
assert (
155+
posts[0].content
156+
== "確定某瑞只有跑去開GTA嗎?\r\n\r\n搞不好換了個名字 繼續開騙錢服 準備再次惡意倒閉呢\r\n\r\n呵呵呵~~"
157+
)
158+
assert (
159+
posts[0].__str__()
160+
== "確定某瑞只有跑去開GTA嗎?\r\n\r\n搞不好換了個名字 繼續開騙錢服 準備再次惡意倒閉呢\r\n\r\n呵呵呵~~"
161+
)
156162
assert posts[0].photo is None
157163
assert posts[0].admin_post is False
158164
assert posts[0].approve_timestamp == 1682317224
@@ -352,8 +358,14 @@ async def test_async_get_posts() -> None:
352358
assert posts[0].post_id == 1703
353359
assert posts[0].platform_id == 2067
354360
assert posts[0].type == "靠北麥塊"
355-
assert posts[0].content == "確定某瑞只有跑去開GTA嗎?\r\n\r\n搞不好換了個名字 繼續開騙錢服 準備再次惡意倒閉呢\r\n\r\n呵呵呵~~"
356-
assert posts[0].__str__() == "確定某瑞只有跑去開GTA嗎?\r\n\r\n搞不好換了個名字 繼續開騙錢服 準備再次惡意倒閉呢\r\n\r\n呵呵呵~~"
361+
assert (
362+
posts[0].content
363+
== "確定某瑞只有跑去開GTA嗎?\r\n\r\n搞不好換了個名字 繼續開騙錢服 準備再次惡意倒閉呢\r\n\r\n呵呵呵~~"
364+
)
365+
assert (
366+
posts[0].__str__()
367+
== "確定某瑞只有跑去開GTA嗎?\r\n\r\n搞不好換了個名字 繼續開騙錢服 準備再次惡意倒閉呢\r\n\r\n呵呵呵~~"
368+
)
357369
assert posts[0].photo is None
358370
assert posts[0].admin_post is False
359371
assert posts[0].approve_timestamp == 1682317224

0 commit comments

Comments
 (0)