Skip to content

Bulk asynchronous downloader for multiple file hosts

test: update tests

NTFSvolume35b07376156e
diff --git a/tests/crawlers/test_pawchive.py b/tests/crawlers/test_pawchive.py
index c9699e937..84a2f9630 100644
--- a/tests/crawlers/test_pawchive.py
+++ b/tests/crawlers/test_pawchive.py
@@ -36,10 +36,18 @@ def post(post_resp: dict[str, Any]) -> UserPostModel:
def test_post_validation(post_resp: dict[str, Any]) -> None:
post = UserPostModel.model_validate(post_resp)
- content = """<p>Hey everyone! Its been a long time in the making. I'm really proud of this one and I hope you all like is as much as I do! I really tried my</p><p>Hey everyone!</p><p>Its been a long time in the making. I'm really proud of this one and I hope you all like is as much as I do! I really tried my best to do the characters justice and add a bit more comedy in this one!</p><p>In the next week I'll be doing an update on the other projects and when they're projected to finish! Right now I just have Alya and Sono Bisque Doll in the making but I'll probably be planning another in the next month or so using a poll!</p><h3><strong>Here is the </strong><a href="https://www.dropbox.com/scl/fi/msac9283y2oieluv3pfcz/DDN-PATRON-ONLY.mp4?rlkey=l1vofvgtumm0cimqr0k5dm47p&st=mvhmkx04&dl=0">LINK </a><strong>to the full animation!</strong></h3><p>Thanks for your patience and everything!</p>"""
assert post.id == "129540190"
- assert post.content == content
- assert post.file is None
+ assert post.content
+ assert (
+ "<p>Hey everyone! Its been a long time in the making. I'm really proud of this one and I hope you all like is as much as I do!"
+ in post.content
+ )
+ assert post.file == File(
+ path="/4f/3a/4f3a65f8e123dfc1fb0a91ae7f001b598c96135695e977701daf55d528145d74.png",
+ name="Timeline 1_0242.00_08_06_14.Still002.png",
+ server=None,
+ deferred=False,
+ )
assert post.attachments == (
File(
path="/4f/3a/4f3a65f8e123dfc1fb0a91ae7f001b598c96135695e977701daf55d528145d74.png",
@@ -49,7 +57,7 @@ def test_post_validation(post_resp: dict[str, Any]) -> None:
)
assert post.published == datetime.datetime(2025, 5, 21, 18, 11, 4, tzinfo=datetime.UTC)
assert post.added == datetime.datetime(2026, 6, 11, 21, 15, 32, 24479, tzinfo=datetime.UTC)
- assert post.edited == datetime.datetime(2026, 7, 3, 21, 13, 46, tzinfo=datetime.UTC)
+ assert post.edited == datetime.datetime(2026, 7, 8, 3, 11, 18, tzinfo=datetime.UTC)
assert post.timestamp == 1747851064
assert post.tags == ("Animation", "Announcement")
assert post.embed is None
diff --git a/tests/test_progress.py b/tests/test_progress.py
index 980c86946..322636158 100644
--- a/tests/test_progress.py
+++ b/tests/test_progress.py
@@ -53,7 +53,7 @@ def test_scraping_json_dump() -> None:
dump = ui.__json__()
assert dump["files"] == {
"completed": 0,
- "previously_completed": 0,
+ "prev_completed": 0,
"skipped": 0,
"failed": 0,
"queued": 0,