It’s a simple Twitter bot that stores and tweets quotes I like.
I used Flask and MySQL
First of all I want to thank Zed! Without your book: “Learn Python the Hard Way” I would have not started this journey through programming. Thx!
You can find the code, links, installation on Github
If you want to test the app fully you can tweet from my own Twitter account by registering to the site with this Register Key: 123456
- Do you think it is possible to run this test without making a real tweet?
def test_twitter(self): rv = self.register('Admin', 'Admin', 'Admin', secret_code.register_key) rv = self.login('Admin', 'Admin') rv = self.app.get('/twitter', content_type='html/text')
- Do you think it is possible to run a test that checks if clicking the “Home” button on the navbar the browser actually goes to the homepage? I know it’s a silly test but it is the first test that came up to my mind