Chap1.1 Obey the Testing Goat! Do Nothing Until You Have a Test

This commit is contained in:
Jason Zhu 2020-10-15 16:00:29 +11:00
parent d96795923e
commit ee21fccd52
2 changed files with 11 additions and 0 deletions

4
src/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
db.sqlite3
geckodriver.log
virtualenv
**__pycache__**

7
src/functional_tests.py Normal file
View File

@ -0,0 +1,7 @@
from selenium import webdriver
browser = webdriver.Firefox()
browser.get('http://localhost:8000')
assert 'Django' in browser.title