From 6cefbfb20dcd50beb6aa0e6d1aa61a2e8091b048 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 27 May 2017 16:37:10 +0100 Subject: [PATCH] Start adding basic tests --- circle.yml | 1 + dev-requirements.txt | 1 + setup.py | 2 +- tests/__init__.py | 5 +++++ tests/test_things.py | 6 ++++++ 5 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 tests/__init__.py create mode 100644 tests/test_things.py diff --git a/circle.yml b/circle.yml index 9ee76d2..99a6f04 100644 --- a/circle.yml +++ b/circle.yml @@ -24,3 +24,4 @@ test: - bandit -r md_pdf/ - mdp --update-csl - cd test-files/ && mdp -vvv + - nose2 diff --git a/dev-requirements.txt b/dev-requirements.txt index 6364219..bae884c 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,3 +1,4 @@ bandit==1.4.0 flake8==3.3.0 +nose2==0.6.5 safety==0.5.1 diff --git a/setup.py b/setup.py index f0d671a..8e4f270 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ setup( "word-count==0.1.0" ], setup_requires=['setuptools_scm'], - packages=find_packages(), + packages=find_packages(exclude=['tests']), include_package_data=True, zip_safe=False, entry_points=""" diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..056c322 --- /dev/null +++ b/tests/__init__.py @@ -0,0 +1,5 @@ +from unittest import TestCase + + +class BaseTestCase(TestCase): + pass diff --git a/tests/test_things.py b/tests/test_things.py new file mode 100644 index 0000000..a6617b9 --- /dev/null +++ b/tests/test_things.py @@ -0,0 +1,6 @@ +from tests import BaseTestCase + + +class ExampleTestCase(BaseTestCase): + def test_thing(self): + self.assertEqual(1, 1)