Re:Flaskr: Intro to Flask, Test-Driven Development, and jQuery
by speg on Sunday November 10, 2013 @05:22PM
(#6708726)
Now you need to add some tests for the front-end too.
[ Parent
| on HN ]
Re:Flaskr: Intro to Flask, Test-Driven Development, and jQuery
by e12e on Sunday November 10, 2013 @08:18PM
(#6709392)
I've yet to read the entire thing, but one of the things that I liked about:
"Test-Driven Development with Python" (uses Django, is free to read online) http://chimera.labs.oreilly.com/books/1234000000754
is that it starts out with:
from selenium import webdriver
browser = webdriver.Firefox()
browser.get('http://localhost:8000')
assert 'Django' in browser.title
before any other thing.