Skip to content
Book - TDD web dev with Python
Python CSS XSLT HTML Shell Batchfile Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows try one more thing Nov 17, 2019
asciidoc add asciidoctor and oreilly asciidoctor-htmlbook backend as submodules Mar 10, 2016
callouts Revert "delete presumable unneccessary callouts folder" Feb 29, 2016
docs Add styleguide to docs Feb 24, 2013
downloads fix bootstrap download shortcut thingie Apr 28, 2015
images finally fix js runner screenshot in CI chapter thanks so much Shaun!!! Mar 18, 2019
misc scrape older comments May 31, 2016
pdf/drafts adding intake with remarks.pdf Apr 16, 2014
research Rewrite chap. 5 to start by naive single-POST implementation. Mar 26, 2013
source update submodule with 1.11.13 cbgv appendix Jul 16, 2018
tests upgrade to 3.7 Mar 20, 2019
theme Edited theme/mobi/layout.html with Atlas code editor Aug 2, 2017
tools Removing temporary information at beginnings of chapters for writing … May 3, 2017
workshops upgrade to 3.7 Mar 20, 2019
!README_FOR_PRODUCTION.txt Adding readme for production editor about custom CSS for code blocks Apr 19, 2017
.gitignore gitignore pytest cache and vbox log files Jun 17, 2018
.gitmodules change submodules Nov 15, 2019
.travis.yml view locale Nov 17, 2019
CITATION.md Create CITATION.md Dec 9, 2019
LICENSE.md Add license Sep 6, 2014
Makefile update makefile so CC license include a hyperlink Dec 21, 2018
README.md Format code blocks to run tests in doc Sep 11, 2017
Vagrantfile start updating deploy chapter for bionic May 30, 2018
acknowledgments.asciidoc fix a couple of paths in ansible appendix, thanks Dominic Oct 13, 2018
analytics.html fix book generator to include google analytics Aug 15, 2016
appendix_DjangoRestFramework.asciidoc todo re @Skip May 8, 2018
appendix_Django_Class-Based_Views.asciidoc second attempt at indexing whitespace fix Oct 18, 2017
appendix_III_provisioning_with_ansible.asciidoc upgrade to 3.7 Mar 20, 2019
appendix_IV_testing_migrations.asciidoc upgrade to 3.7 Mar 20, 2019
appendix_IX_cheat_sheet.asciidoc second attempt at indexing whitespace fix Oct 18, 2017
appendix_I_PythonAnywhere.asciidoc remove a stray 3.4 in pa appendix, thanks James Mar 31, 2018
appendix_X_what_to_do_next.asciidoc remove an old ref to persona from appendix Jun 11, 2018
appendix_bdd.asciidoc some tweaks to fix end-of-para-tips mostly Oct 18, 2017
appendix_github_links.asciidoc second attempt at indexing whitespace fix Oct 18, 2017
appendix_logging.asciidoc Removing index terms from first edition May 3, 2017
appendix_rest_api.asciidoc todo in rest api chap Jan 19, 2018
asciidoc.conf remove last bits of custom syntax Mar 5, 2016
asciidoctor.css tweak makefile and css for new formal listings Jul 4, 2017
atlas.json Updated atlas.json Feb 28, 2018
author_bio.html updating boilerplate files for V2 and adding .xsl for callouts Dec 14, 2015
bibliography.asciidoc Edited bibliography.asciidoc with Atlas code editor Jul 24, 2017
book.asciidoc add github links appendix Jul 5, 2017
buy_the_book_banner.html fix banner and comments one more time Jul 3, 2016
chapter_01.asciidoc upgrade to 3.7 Mar 20, 2019
chapter_02_unittest.asciidoc Update chapter_02_unittest.asciidoc Apr 3, 2019
chapter_CI.asciidoc upgrade to 3.7 Mar 20, 2019
chapter_advanced_forms.asciidoc bulk sed for python-tdd-book path, fix uts Nov 17, 2017
chapter_automate_deployment_with_fabric.asciidoc upgrade to 3.7 Mar 20, 2019
chapter_database_layer_validation.asciidoc clarify that FTs dont pass yet at the beginning of db valid chapter. … Mar 31, 2018
chapter_deploying_validation.asciidoc mention dotenv in fabric chap, feed thru some commits Jan 15, 2018
chapter_explicit_waits_1.asciidoc add a virtualenv folder for all tests, tweak a tree in expwaits Nov 17, 2017
chapter_fixtures_and_wait_decorator.asciidoc whitespace tweaks Jul 16, 2018
chapter_hot_lava.asciidoc second attempt at indexing whitespace fix Oct 18, 2017
chapter_javascript.asciidoc upgrade jquery and qunit, thanks John Apr 15, 2018
chapter_making_deployment_production_ready.asciidoc Redundant "it" May 14, 2019
chapter_manual_deployment.asciidoc upgrade to 3.7 Mar 20, 2019
chapter_mocking.asciidoc whitespace tweaks Jul 16, 2018
chapter_organising_test_files.asciidoc add reminder re being back to local dev after deployment chaps Mar 17, 2018
chapter_outside_in.asciidoc minor todo and listing tweaks Nov 4, 2017
chapter_page_pattern.asciidoc Add missing line of code in example of Chapter 25 Feb 14, 2018
chapter_philosophy_and_refactoring.asciidoc upgrade to 3.7 Mar 20, 2019
chapter_post_and_database.asciidoc fix a few more 3.7 python outputs Mar 25, 2019
chapter_prettification.asciidoc fix a few more 3.7 python outputs Mar 25, 2019
chapter_purist_unit_tests.asciidoc Unnecessary 'as' Mar 15, 2018
chapter_server_side_debugging.asciidoc upgrade to 3.7 Mar 20, 2019
chapter_simple_form.asciidoc use env var to fetch ALLOWED_HOSTS on server Dec 30, 2017
chapter_spiking_custom_auth.asciidoc Edited chapter_spiking_custom_auth.asciidoc with Atlas code editor Feb 23, 2018
chapter_unit_test_first_view.asciidoc Merge pull request #102 from bummmer/master Apr 3, 2019
chapter_working_incrementally.asciidoc fix a few more 3.7 python outputs Mar 25, 2019
coderay-asciidoctor.css link css rather than embedding Jan 13, 2017
colo.html trying to fix some special AsciiDoc markup preventing builds Dec 14, 2015
copy_html_to_site_and_print_toc.py fix appendix titles issue, thanks Iain Aug 15, 2018
copyright.html Edited copyright.html with Atlas code editor Feb 23, 2018
cover.html Adding theme directory, boilerplate files, and readme to new repo Nov 1, 2015
disqus_comments.html add chapters to atlas json, use identifiers for disqus, fix exporter Feb 18, 2017
epilogue.asciidoc second attempt at indexing whitespace fix Oct 18, 2017
index.txt a couple more small index things Jun 1, 2014
ix.html Adding theme directory, boilerplate files, and readme to new repo Nov 1, 2015
load_toc.js some js code to try and hide irrelephant parts of the toc Apr 2, 2017
outline_and_future_chapters.asciidoc fix a url and add a todo Nov 27, 2013
part1.asciidoc Edited part1.asciidoc with Atlas code editor Feb 23, 2018
part2.asciidoc update a bunch of references to the django tutorial to tell ppl to us… Dec 30, 2017
part3.asciidoc Edited part3.asciidoc with Atlas code editor Jul 24, 2017
praise.asciidoc restore praise chapter Mar 5, 2016
praise.harry.asciidoc fix broken danny and audrey praise Jan 13, 2017
praise.html Edited praise.html with Atlas code editor Jul 25, 2017
pre-requisite-installations.asciidoc upgrade to 3.7 Mar 20, 2019
preface.asciidoc preface typo Mar 20, 2019
rename-chapter.sh start renaming bdd appendix properly Feb 12, 2017
requirements.txt upgrade geckodriver and selenium Jul 5, 2017
run_all_tests.sh Makefile, executable tests and test requirements Oct 27, 2013
run_test_tests.sh fix ut runner, some paths in uts Nov 21, 2017
server-quickstart.md add some nice italics Oct 22, 2017
titlepage.html Edited titlepage.html with Atlas code editor Jul 24, 2017
toc.html Adding theme directory, boilerplate files, and readme to new repo Nov 1, 2015
todos.txt a more heartfelt entreaty about not using django 2 Jun 24, 2018
video_plug.asciidoc second attempt at indexing whitespace fix Oct 18, 2017
wordcount fix mistake and add link in 5 May 26, 2014

README.md

Test-Driven Web Development With Python, the book.

License

The sources for this book are published under the Creative Commons Attribution Non-Commercial No-Derivs license (CC-BY-NC-ND).

I wouldn't recommend using this version to read the book. Head over to obeythetestinggoat.com when you can access a nicely formatted version of the full thing, still free and under CC license. And you'll also be able to buy an ebook or print version if you feel like it.

These sources are being made available for the purposes of curiosity (others writing books may be interested in the test suite for example) and collaboration (typo-fixes by pull request are very much encouraged).

Building the book as HTML

  • install asciidoctor, and the coderay gem.
  • make build will build each chapter as its own html file
  • make book.html will create a single file
  • make chapter_post_and_database.html, eg, will build chapter 5

Running the tests

  • Pre-requisites for the test suite:
$ mkvirtualenv --python=python3 tddbook
$ pip install -r requirements.txt
$ git submodule update --init
  • Full test suite:
$ make test
  • To test an individual chapter, eg:
$ make test_chapter_explicit_waits_1
  • Unit tests (tests for the tests for the tests in the testing book)
$ ./run_test_tests.sh
You can’t perform that action at this time.