A fast test suite avoids connecting to remote systems, like databases, LDAP, etc. Just verifying the core units and avoiding external systems can result in a faster running test suite with more coverage. This can lead to a useful smoke test that provides developers with confidence in the system without running all the tests.
With these steps, we will see how to cut out test cases that interact with external systems.
recipe60_test.pyfor writing some tests against our network application.
import logging from network import * import unittest from springpython.database.factory import * from springpython.database.core import *