Commit 862ec881 authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

tests: Add test script and fix pep8 in unittest.

Showing with 21 additions and 0 deletions
+21 -0
......@@ -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()
......
tests.sh 0 → 100755
#! /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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment