add test suite, clean up packaging

This commit is contained in:
Ray Holder 2013-01-21 02:14:31 -06:00
parent a6e0b2e702
commit 4c30bdb48f
3 changed files with 5 additions and 8 deletions

View File

@ -1 +0,0 @@
__author__ = 'rholder'

View File

@ -19,12 +19,14 @@ if sys.argv[-1] == 'publish':
settings.update(
name='retrying',
version='1.0.0',
description='Retry any arbitrary function conditionally via a decorator.',
long_description=open('README.rst').read(),
description='Retrying',
long_description=open('README.rst').read() + '\n\n' +
open('HISTORY.rst').read(),
author='Ray Holder',
url='https://github.com/rholder/retrying',
keywords="context manager decorator decorators retry retrying exception exponential backoff",
py_modules= ['retrying'],
test_suite="test_retrying",
classifiers=(
'Intended Audience :: Developers',
'Natural Language :: English',

View File

@ -108,8 +108,6 @@ class TestWaitConditions(unittest.TestCase):
self.assertEqual(r.wait(7, 0), 50000)
self.assertEqual(r.wait(50, 0), 50000)
class NoneReturnUntilAfterCount:
"""
This class holds counter state for invoking a method several times in a row.
@ -157,7 +155,7 @@ class NoNameErrorAfterCount:
def go(self):
"""
Raise an NameError until after count threshold has been crossed, then return True.
Raise a NameError until after count threshold has been crossed, then return True.
"""
if self.counter < self.count:
self.counter += 1
@ -226,7 +224,5 @@ class TestDecoratorWrapper(unittest.TestCase):
self.assertTrue(re.last_attempt.has_exception)
self.assertTrue(isinstance(re.last_attempt.value, IOError))
#TODO YOU ARE HERE, CONTINUE TESTING
if __name__ == '__main__':
unittest.main()