Python API for the http://abclinuxu.cz website.
Whole API is splitted into four submodules:
And one file with shared functions:
sudo pip install abclinuxuapi
Project is released under MIT license. Source code can be found at GitHub:
A lot of features 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 the PDB shell.
This script expects that package 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
Some of the tests also require file
loginplaced in the
tests/directory. If you don’t provide this file, tests from
Example of the
$ ./run_tests.sh ============================= test session starts ============================== platform linux2 -- Python 2.7.6 -- py-1.4.27 -- pytest-2.7.0 rootdir: /home/Dropbox/c0d3z/python/interface/abclinuxuapi, inifile: collected 33 items tests/test_blogpost.py .......... tests/test_comment.py .......... tests/test_init.py ... tests/test_shared.py ... tests/test_user.py ....... ========================== 33 passed in 16.07 seconds ==========================