1
0
Fork 0
mirror of synced 2024-06-26 18:10:26 +12:00

Fix missing links in self post footer (#235)

This commit is contained in:
Ali Parlakçı 2021-03-29 11:21:47 +03:00 committed by Ali Parlakci
parent 5e6159ade3
commit 265505efc7
2 changed files with 3 additions and 3 deletions

View file

@ -36,8 +36,8 @@ class SelfPost(BaseDownloader):
+ "](https://www.reddit.com/r/"
+ self.post.subreddit.title
+ ") by [u/"
+ self.post.author.name if self.post.author else "DELETED"
+ (self.post.author.name if self.post.author else "DELETED")
+ "](https://www.reddit.com/user/"
+ self.post.author.name if self.post.author else "DELETED"
+ (self.post.author.name if self.post.author else "DELETED")
+ ")")
return content

View file

@ -13,7 +13,7 @@ from bulkredditdownloader.site_downloaders.self_post import SelfPost
@pytest.mark.parametrize(('test_submission_id', 'expected_hash'), (
('ltmivt', '7d2c9e4e989e5cf2dca2e55a06b1c4f6'),
('ltoaan', '221606386b614d6780c2585a59bd333f'),
('d3sc8o', 'b675974cd6964246c6e97a10a385c080'),
('d3sc8o', 'c1ff2b6bd3f6b91381dcd18dfc4ca35f'),
))
def test_find_resource(test_submission_id: str, expected_hash: str, reddit_instance: praw.Reddit):
submission = reddit_instance.submission(id=test_submission_id)