-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #185 from Starry-OvO/develop
Update 4.4.1
- Loading branch information
Showing
7 changed files
with
79 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
MAIN_VERSION = "12.57.0.1" | ||
MAIN_VERSION = "12.57.4.2" | ||
POST_VERSION = "12.35.1.0" | ||
|
||
APP_SECURE_SCHEME = "https" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build" | |
|
||
[project] | ||
name = "aiotieba" | ||
version = "4.4.0" | ||
version = "4.4.1" | ||
description = "Asynchronous I/O Client for Baidu Tieba" | ||
authors = [{ name = "Starry-OvO", email = "[email protected]" }] | ||
urls = { Repository = "https://github.com/Starry-OvO/aiotieba/", Documentation = "https://aiotieba.cc/" } | ||
|
@@ -63,7 +63,7 @@ speedup = [ | |
|
||
[tool.pdm.dev-dependencies] | ||
lint = ["ruff", "black"] | ||
test = ["aiotieba[speedup]", "pytest==8.1.0", "pytest-asyncio==0.23.5", "pytest-rerunfailures==13.0"] | ||
test = ["aiotieba[speedup]", "pytest==8.1.1", "pytest-asyncio==0.23.6", "pytest-rerunfailures==14.0"] | ||
doc = ["mkdocs-material", "mkdocstrings[python]"] | ||
|
||
[tool.scikit-build] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import pytest | ||
|
||
import aiotieba as tb | ||
|
||
|
||
@pytest.mark.flaky(reruns=2, reruns_delay=5.0) | ||
@pytest.mark.asyncio(scope="session") | ||
async def test_get_user_posts(client: tb.Client): | ||
user_id = 4954297652 | ||
postss = await client.get_user_posts(user_id) | ||
|
||
##### UserPosts ##### | ||
posts = postss[0] | ||
assert posts.fid > 0 | ||
assert posts.tid > 0 | ||
|
||
##### UserPost ##### | ||
post = posts[0] | ||
assert len(post.contents) > 0 | ||
assert post.fid > 0 | ||
assert post.tid > 0 | ||
assert post.pid > 0 | ||
assert post.create_time > 0 | ||
|
||
##### UserInfo_u ##### | ||
user = post.user | ||
assert user.user_id == post.author_id | ||
assert user.portrait != '' | ||
assert user.user_name != '' | ||
assert user.nick_name_new != '' |