photo-python/tests
2013-09-07 09:12:55 +01:00
..
data Reorganise tests into unit and functional categories. 2013-06-29 12:43:41 +01:00
functional Finished activities/purge test, fails due to frontend/#1368 2013-09-07 09:12:55 +01:00
unit Add support for activity list filters 2013-09-05 22:51:32 +01: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.