Skip to content

Commit

Permalink
Use virtualenv and pip to run unittests.
Browse files Browse the repository at this point in the history
  • Loading branch information
svetlyak40wt committed Nov 22, 2011
1 parent 5d986cd commit 72e6976
Show file tree
Hide file tree
Showing 6 changed files with 1,974 additions and 34 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ bin/
develop-eggs/
parts/
test.sqlite
env
pip-log.txt
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ Under Ubuntu, just do:

sudo apt-get install python-crypto

Examples
--------
How to run tests
----------------

Examples can be found at the `examples` directory. Look at the, `tests.py`.
Same project is used to run unittests. To run them, just fire `./run-tests.sh`.

Contributors
------------
Expand Down
32 changes: 0 additions & 32 deletions buildout.cfg

This file was deleted.

5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Django==1.3.1
nose==1.1.2
django-nose==0.1.3
pycrypto==2.3
-e .
8 changes: 8 additions & 0 deletions run-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

if [ ! -e 'env' ]; then
python virtualenv.py env
env/bin/pip install -U -r requirements.txt
fi

env/bin/python src/example/manage.py test $@
Loading

0 comments on commit 72e6976

Please sign in to comment.