Fixed setup.py to use the setup.py test command
This commit is contained in:
parent
90cd77754a
commit
3e295cc13c
1
setup.py
1
setup.py
@ -20,5 +20,6 @@ setup(
|
||||
platforms='any',
|
||||
|
||||
packages=find_packages(),
|
||||
test_suite='tests',
|
||||
tests_require=['pyqcy'],
|
||||
)
|
||||
|
@ -1,3 +0,0 @@
|
||||
from pyqcy import TestCase
|
||||
|
||||
TestCase.__test__ = False
|
@ -4,9 +4,8 @@ from pyqcy import *
|
||||
class Arithmetic(TestCase):
|
||||
|
||||
@qc
|
||||
def addition_on_ints(x=int, y=int):
|
||||
assert isinstance(x + y, int)
|
||||
|
||||
@qc
|
||||
def subtraction_on_ints(x=int, y=int):
|
||||
assert isinstance(x - y, int)
|
||||
def addition_actually_works(
|
||||
x=int_(min=0), y=int_(min=0)
|
||||
):
|
||||
the_sum = x + y
|
||||
assert the_sum >= x and the_sum >= y
|
||||
|
Loading…
x
Reference in New Issue
Block a user