Permalink
Browse files

Use virtualenv and pip to run unittests.

  • Loading branch information...
1 parent 5d986cd commit 72e6976b6165eddb9b30e86861969837b292f676 @svetlyak40wt committed Nov 22, 2011
Showing with 1,974 additions and 34 deletions.
  1. +2 −0 .gitignore
  2. +3 −2 README.md
  3. +0 −32 buildout.cfg
  4. +5 −0 requirements.txt
  5. +8 −0 run-tests.sh
  6. +1,956 −0 virtualenv.py
View
@@ -9,3 +9,5 @@ bin/
develop-eggs/
parts/
test.sqlite
+env
+pip-log.txt
View
@@ -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
------------
View
@@ -1,32 +0,0 @@
-[buildout]
-parts = django
-unzip = true
-versions = versions
-#allow-picked-versions = false
-extensions = buildout-versions
-
-[django]
-recipe = djangorecipe
-version = 1.2.5
-settings = settings
-project = example
-projectegg = example
-test = django_fields
-extra-paths = src
-eggs =
- nose
- django-nose
- pycrypto
-
-[versions]
-distribute = 0.6.18
-django-nose = 0.1.3
-djangorecipe = 0.22
-nose = 1.0.0
-pycrypto = 2.3
-buildout-versions = 1.6
-
-#Required by:
-#djangorecipe 0.22
-zc.buildout = 1.5.2
-zc.recipe.egg = 1.3.1
View
@@ -0,0 +1,5 @@
+Django==1.3.1
+nose==1.1.2
+django-nose==0.1.3
+pycrypto==2.3
+-e .
View
@@ -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 $@
Oops, something went wrong.

0 comments on commit 72e6976

Please sign in to comment.