photo-python/tests
2013-06-30 18:16:09 +01:00
..
data Reorganise tests into unit and functional categories. 2013-06-29 12:43:41 +01:00
functional Updated functional test instructions 2013-06-30 17:05:50 +01:00
unit Remove invalid comment 2013-06-30 18:16:09 +01:00
__init__.py Added tests for Python API library 2012-09-04 22:08:48 +01:00
README.markdown Added tox instructions 2013-06-30 17:08:54 +01:00

OpenPhoto/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
  • 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 openphoto-python library interoperates correctly with a real OpenPhoto/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.