This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hi! Does anyone happen to have a solution for mocking HTTP requests in unit tests for praw?
Context: I have a bot that's been running the same code for a solid 4 years. Let's just say I was a much worse programmer 4 years ago. I want to refactor to make it easier to configure via wikis, etc. and I'm scared I'm going to mess it up. Doubly so because the motivation for refactoring is to release it and/or deploy to more subreddits.
Would love to have some unit tests as guardrails when refactoring. I'm not a web dev, so I only have a sketchy concept of mocking (and might not have the right language to talk about this stuff), but I'm experienced with python in a data science-like context. Or is this question more general than just praw and should I be asking elsewhere?
Looking at betamax -- has anyone used this with more recent versions of praw?
Thanks so much for any pointers you can give.
Subreddit
Post Details
- Posted
- 3 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/redditdev/c...