edeposit.amqp.rest¶
REST API for the E-deposit project.
Package structure¶
API¶
Source code¶
Project is released under the MIT license. Source code can be found at GitHub:
Installation¶
Installation of this project is little bit more complicated. Please read installation notes:
Unittests¶
Almost every feature of the project is tested by unittests. You can run those
tests using provided run_tests.sh
script, which can be found in the root
of the project.
If you have any trouble, just add --pdb
switch at the end of your run_tests.sh
command like this: ./run_tests.sh --pdb
. This will drop you to PDB shell.
Requirements¶
This script expects that packages pytest is installed. In case you don’t have it yet, it can be easily installed using following command:
pip install --user pytest
or for all users:
sudo pip install pytest
Example¶
./run_tests.sh
============================= test session starts ==============================
platform linux2 -- Python 2.7.6, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: /home/bystrousak/Plocha/Dropbox/c0d3z/prace/edeposit.amqp.rest, inifile:
plugins: cov-1.8.1
collected 29 items
tests/test_context_manager.py .
tests/database/test_cache_handler.py ...
tests/database/test_status_handler.py ..........
tests/database/test_user_handler.py ....
tests/rest/test_rest.py ...........
No handlers could be found for logger "ZEO.zrpc"
========================== 29 passed in 36.13 seconds ==========================