summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Edmund Crosley <timothy.crosley@gmail.com>2014-02-24 05:25:21 -0500
committerTimothy Edmund Crosley <timothy.crosley@gmail.com>2014-02-24 05:25:21 -0500
commita45f8d44ea51d2cd7da558fe126c306fb98cf566 (patch)
tree8a78af35f736c0191cfe08f76720415f911d4e57
parentbf5c945da6e4c075e0e35c0d209fc27e57c613ce (diff)
parent68750239640d8acc7f0b2283b530f8d2594a579e (diff)
downloadpies-a45f8d44ea51d2cd7da558fe126c306fb98cf566.tar.gz
Merge pull request #20 from msabramo/tox
Add tox.ini
-rw-r--r--test_pies.py7
-rw-r--r--tox.ini12
2 files changed, 19 insertions, 0 deletions
diff --git a/test_pies.py b/test_pies.py
new file mode 100644
index 0000000..5a52b64
--- /dev/null
+++ b/test_pies.py
@@ -0,0 +1,7 @@
+from __future__ import absolute_import, division, print_function, unicode_literals
+
+from pies.overrides import *
+
+
+def test_u():
+ assert u('Bj\xf6rk Gu\xf0mundsd\xf3ttir') == 'Bj\xf6rk Gu\xf0mundsd\xf3ttir'
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..dac85a3
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,12 @@
+# Tox (http://tox.testrun.org/) is a tool for running tests
+# in multiple virtualenvs. This configuration file will run the
+# test suite on all supported python versions. To use it, "pip install tox"
+# and then run "tox" from this directory.
+
+[tox]
+envlist = py26, py27, py32, py33, pypy
+
+[testenv]
+commands = py.test {posargs}
+deps =
+ pytest