Permalink
Browse files

use unittest2 as test runner

  • Loading branch information...
1 parent 72ccdec commit fc46ca7cbf3b03868ec5cc3ad736de36f07e8424 @sigma sigma committed Oct 29, 2010
Showing with 11 additions and 5 deletions.
  1. +0 −3 setup.cfg
  2. +5 −0 setup.py
  3. 0 tests/__init__.py
  4. +1 −2 tests/test_getallplugins.py
  5. +5 −0 tox.ini
View
@@ -5,6 +5,3 @@ all_files = 1
[upload_sphinx]
upload-dir = doc/build/html/
-
-[nosetests]
-tests=tests/
View
@@ -16,6 +16,10 @@ def read(fname):
'setuptools',
'Twisted',
],
+ extra_requires = {'async': 'Twisted'},
+ setup_requires = ['unittest2',
+ 'sphinx',
+ ],
description = "Python bindings for the VMware Orchestrator",
long_description=read('README'),
@@ -31,4 +35,5 @@ def read(fname):
"License :: OSI Approved :: MIT License",
],
+ test_suite = 'unittest2.collector'
)
View
No changes.
@@ -13,8 +13,7 @@ def setUp(self):
self._transport = TransportFactory()
self._client = Client(_fake_url,
username="foo", password="bar",
- transport=self._transport,
- tracefile=sys.stdout)
+ transport=self._transport)
def _testPluginBase(self, params):
self._transport.recordTransaction(_operation,
View
@@ -0,0 +1,5 @@
+[tox]
+envlist = py25, py26, py27
+
+[testenv]
+commands=unit2 discover -v []

0 comments on commit fc46ca7

Please sign in to comment.