summaryrefslogtreecommitdiff
path: root/docs/source/testing.rst
blob: fc1d81d6aba7b873000fe5987c56fa363e08002e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
.. _testing:

Unit Testing 
=============
UnitTesting in Pecan is handled by ``WebTest``. It creates a fake Pecan
application that in turn allows you to make assertions on how those requests
and responses are being handled without starting an HTTP server at all.

Make sure you always have a separate configuration file for your tests. This
guide will assume that your test file is called ``test.py``.