-
Notifications
You must be signed in to change notification settings - Fork 78
Testing in python 2 and 3
Steve edited this page Nov 6, 2017
·
9 revisions
Install python
$ brew install python python3Test in python2
$ mkvirtualenv --python=`which python2` wptools
[wptools]$ git clone https://github.com/siznax/wptools.git
[wptools]$ cd wptools
[wptools]$ pip install --upgrade pip
[wptools]$ pip install -r requirements.txt
[wptools]$ pip install nose
[wptools]$ nosetests tests/test_basic.py
Ran 58 tests in 0.844s
OKTest in python3
$ mkvirtualenv --python=`which python3` wptools_py3
[wptools_py3]$ git clone https://github.com/siznax/wptools.git
[wptools_py3]$ cd wptools
[wptools_py3]$ pip install --upgrade pip
[wptools_py3]$ pip install -r requirements.txt
[wptools_py3]$ pip install nose
[wptools_py3]$ nosetests tests/test_basic.py
Ran 58 tests in 0.507s
OK