Skip to content

Commit

Permalink
chore: setup tests + add .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya Anand M C committed Jul 6, 2020
1 parent 08610bc commit aec92d4
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.eggs
*.egg-info
2 changes: 0 additions & 2 deletions quadratic_funding/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
# coding: utf-8

def calculate():
return (u'derp package works')
Binary file modified quadratic_funding/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
8 changes: 8 additions & 0 deletions quadratic_funding/tests/test_calculate.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from unittest import TestCase

import quadratic_funding

class TestCalculate(TestCase):
def test_is_string(self):
s = quadratic_funding.calculate()
self.assertTrue(isinstance(s, str))
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
],
python_requires='>=3.6'
python_requires='>=3.6',
test_suite='nose.collector',
tests_require=['nose']
)

0 comments on commit aec92d4

Please sign in to comment.