Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The bot has no tests #10

Open
5 tasks
betatim opened this issue Oct 8, 2016 · 0 comments
Open
5 tasks

The bot has no tests #10

betatim opened this issue Oct 8, 2016 · 0 comments

Comments

@betatim
Copy link
Member

betatim commented Oct 8, 2016

Currently it takes a long time/a lot of CPU to verify that the bot still works. Create tests that use mock to replace the slow running bits so that we can verify that the bot still works.

Steps:

  • setup py.test
  • create the simplest test possible that tests something
  • test with a mock that picking a random location works
  • test with a mock for downloading images
  • create a test that mocks posting to twitter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant