Skip to content

Commit 72e6976

Browse files
committed
Use virtualenv and pip to run unittests.
1 parent 5d986cd commit 72e6976

File tree

6 files changed

+1974
-34
lines changed

6 files changed

+1974
-34
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ bin/
99
develop-eggs/
1010
parts/
1111
test.sqlite
12+
env
13+
pip-log.txt

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ Under Ubuntu, just do:
1616

1717
sudo apt-get install python-crypto
1818

19-
Examples
20-
--------
19+
How to run tests
20+
----------------
2121

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

2425
Contributors
2526
------------

buildout.cfg

-32
This file was deleted.

requirements.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Django==1.3.1
2+
nose==1.1.2
3+
django-nose==0.1.3
4+
pycrypto==2.3
5+
-e .

run-tests.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
if [ ! -e 'env' ]; then
4+
python virtualenv.py env
5+
env/bin/pip install -U -r requirements.txt
6+
fi
7+
8+
env/bin/python src/example/manage.py test $@

0 commit comments

Comments
 (0)