Testing in django
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bar
testfoo
.gitignore
README.rst
manage.py
requirements.txt

README.rst

Note

"Code without tests is broken by design." - Jacob Kaplan-Moss

ABOUT:

This is a sample project to introduce testing and showcase various aspects of testing in django.

Unit Test vs Integration Test:

A unit test is:

  • Repeatable
  • Consistent
  • In Memory
  • Fast
  • Single concern
  • Easy to debug

In contrast, an integration test is

  • Environment dependent
  • Indeterministic
  • External dependencies
  • Slow
  • Multiple concerns
  • Hard to debug

Reference: http://www.typemock.com/unit-tests-integration-tests