mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
tests: Add test script and fix pep8 in unittest.
This commit is contained in:
1 parent
d36a9cd340
commit
862ec88191
2 files changed
+21
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user