Start adding basic tests
This commit is contained in:
parent
2c7c905c42
commit
6cefbfb20d
5 changed files with 14 additions and 1 deletions
|
@ -24,3 +24,4 @@ test:
|
||||||
- bandit -r md_pdf/
|
- bandit -r md_pdf/
|
||||||
- mdp --update-csl
|
- mdp --update-csl
|
||||||
- cd test-files/ && mdp -vvv
|
- cd test-files/ && mdp -vvv
|
||||||
|
- nose2
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
bandit==1.4.0
|
bandit==1.4.0
|
||||||
flake8==3.3.0
|
flake8==3.3.0
|
||||||
|
nose2==0.6.5
|
||||||
safety==0.5.1
|
safety==0.5.1
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -17,7 +17,7 @@ setup(
|
||||||
"word-count==0.1.0"
|
"word-count==0.1.0"
|
||||||
],
|
],
|
||||||
setup_requires=['setuptools_scm'],
|
setup_requires=['setuptools_scm'],
|
||||||
packages=find_packages(),
|
packages=find_packages(exclude=['tests']),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
entry_points="""
|
entry_points="""
|
||||||
|
|
5
tests/__init__.py
Normal file
5
tests/__init__.py
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
from unittest import TestCase
|
||||||
|
|
||||||
|
|
||||||
|
class BaseTestCase(TestCase):
|
||||||
|
pass
|
6
tests/test_things.py
Normal file
6
tests/test_things.py
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
from tests import BaseTestCase
|
||||||
|
|
||||||
|
|
||||||
|
class ExampleTestCase(BaseTestCase):
|
||||||
|
def test_thing(self):
|
||||||
|
self.assertEqual(1, 1)
|
Reference in a new issue