diff --git a/src/Model/test_Model.py b/src/Model/test_Model.py index e8577494806abd2354089eccf8536f9d3646dc70..2694366fa3dd6a9bd93b9dba19b47cb1eab0694a 100644 --- a/src/Model/test_Model.py +++ b/src/Model/test_Model.py @@ -24,6 +24,7 @@ from Model.Saved import SavedStatus from Model.Study import Study from Model.River import River + class StudyTestCase(unittest.TestCase): def test_create_study(self): study = Study.new("foo", "bar") @@ -57,6 +58,7 @@ class StudyTestCase(unittest.TestCase): study = Study.new("foo", "bar") self.assertNotEqual(study.river, None) + class RiverTestCase(unittest.TestCase): def test_create_river(self): status = SavedStatus() diff --git a/tests.sh b/tests.sh new file mode 100755 index 0000000000000000000000000000000000000000..2e4df6bcd5c9c9dd41c8003b58b9726f6b727a29 --- /dev/null +++ b/tests.sh @@ -0,0 +1,19 @@ +#! /bin/sh + +echo " Setup ENV" + +python3 -m venv venv +. venv/bin/activate +pip3 install -U pip +pip3 install -r ./full-requirements.txt +pip3 install -U -r ./full-requirements.txt + +echo " UNITTEST" + +cd src/ +python3 -m unittest discover -v -t . +cd .. + +echo " PEP8" + +pycodestyle ./src