Skip to content

Commit

Permalink
use directly martians test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Riolo committed Apr 15, 2015
1 parent f895f7a commit 5d1e368
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,6 @@
def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()

def alltests():
import os
import sys
import unittest
# use the zope.testrunner machinery to find all the
# test suites we've put under ourselves
import zope.testrunner.find
import zope.testrunner.options
here = os.path.abspath(os.path.join(os.path.dirname(__file__), 'src'))
args = sys.argv[:]
defaults = ["--test-path", here]
options = zope.testrunner.options.get_options(args, defaults)
suites = list(zope.testrunner.find.find_suites(options))
return unittest.TestSuite(suites)

long_description = (
read('README.txt')
+ '\n' +
Expand Down Expand Up @@ -56,13 +41,10 @@ def alltests():
include_package_data = True,
zip_safe=False,
license='ZPL',
test_suite='__main__.alltests',
test_suite='martian.tests.test_all.test_suite',
install_requires=[
'zope.interface',
'setuptools',
],
tests_require=[
'zope.testrunner',
],
extras_require = dict(test=['zope.testing']),
)

0 comments on commit 5d1e368

Please sign in to comment.