X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;f=tests%2Fconditions.py;h=4ac69a856e24ca731b6cff344a9cf9c720149e7b;hb=c021152e6566c8374170de916c69d6b5c816cd54;hp=562dcd9ae01c5c681f11497b7db51247d4e6272c;hpb=aa0f1ff1b3ccb57a1c3c2772fc6a172643cdab73;p=plomtask diff --git a/tests/conditions.py b/tests/conditions.py index 562dcd9..4ac69a8 100644 --- a/tests/conditions.py +++ b/tests/conditions.py @@ -19,23 +19,9 @@ class TestsWithDB(TestCaseWithDB): default_init_kwargs = {'is_active': False} test_versioneds = {'title': str, 'description': str} - def test_from_table_row(self) -> None: - """Test .from_table_row() properly reads in class from DB""" - super().test_from_table_row() - self.check_versioned_from_table_row('title', str) - self.check_versioned_from_table_row('description', str) - - def test_Condition_by_id(self) -> None: - """Test .by_id(), including creation.""" - self.check_by_id() - - def test_Condition_versioned_attributes_singularity(self) -> None: - """Test behavior of VersionedAttributes on saving (with .title).""" - self.check_versioned_singularity() - - def test_Condition_remove(self) -> None: + def test_remove(self) -> None: """Test .remove() effects on DB and cache.""" - self.check_remove() + super().test_remove() proc = Process(None) proc.save(self.db_conn) todo = Todo(None, proc, False, '2024-01-01')