photo-python/tests
2013-11-03 12:40:24 +00:00
..
data Reorganise tests into unit and functional categories. 2013-06-29 12:43:41 +01:00
functional Remove photo dynamic_url, since this is marked as "internal" in the frontend code 2013-09-15 11:28:40 +01:00
unit Don't delete/update TroveboxObject attributes that start with an underscore 2013-11-03 12:40:24 +00:00
__init__.py Added tests for Python API library 2012-09-04 22:08:48 +01:00
README.markdown Add DDT support to test_http, to reduce duplication 2013-08-16 17:46:30 +01:00

Trovebox Python Testing

###Unit Tests

The unit tests mock out all HTTP requests, and verify that the various components of the library are operating correctly.

They run very quickly and don't require any external test hosts.

Requirements

  • mock >= 1.0.0
  • httpretty >= 0.6.1
  • ddt >= 0.3.0
  • tox (optional)

Running the Unit Tests

python -m unittest discover tests/unit

To run the unit tests against all supported Python versions, use tox:

tox

###Functional Tests

The functional tests check that the Trovebox python library interoperates correctly with a real Trovebox server.

They are slow to run and rely on a stable HTTP connection to a test server.

For full details, see the functional test README file.