time --> timestamp + fix X command

This commit is contained in:
2025-10-22 13:29:07 +02:00
parent b5d2d31a9b
commit 17002bfddf
7 changed files with 37 additions and 16 deletions

View File

@@ -19,7 +19,7 @@ class TestRedditWrapper:
assert len(posts) == 2
for post in posts:
assert post.title != ""
assert re.match(r'\d{4}-\d{2}-\d{2}', post.time)
assert re.match(r'\d{4}-\d{2}-\d{2}', post.timestamp)
assert isinstance(post.comments, list)
assert len(post.comments) <= MAX_COMMENTS