X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/static/git-logo.png?a=blobdiff_plain;f=tests%2Fprocesses.py;h=f495fd54714745f1f4721d92441cd922dd016132;hb=aa0f1ff1b3ccb57a1c3c2772fc6a172643cdab73;hp=4d2252c4b748718ee5f61844521322a15ff03669;hpb=9c62e1b0e5c30ed3fd7a49828749db195bc3e557;p=plomtask diff --git a/tests/processes.py b/tests/processes.py index 4d2252c..f495fd5 100644 --- a/tests/processes.py +++ b/tests/processes.py @@ -63,9 +63,9 @@ class TestsWithDB(TestCaseWithDB): self.assertEqual(sorted(r.enables), sorted(set2)) self.assertEqual(sorted(r.disables), sorted(set3)) - def test_Process_from_table_row(self) -> None: + def test_from_table_row(self) -> None: """Test .from_table_row() properly reads in class from DB""" - self.check_from_table_row() + super().test_from_table_row() self.check_versioned_from_table_row('title', str) self.check_versioned_from_table_row('description', str) self.check_versioned_from_table_row('effort', float) @@ -186,14 +186,6 @@ class TestsWithDB(TestCaseWithDB): """Test .by_id(), including creation""" self.check_by_id() - def test_Process_all(self) -> None: - """Test .all().""" - self.check_all() - - def test_Process_singularity(self) -> None: - """Test pointers made for single object keep pointing to it.""" - self.check_singularity('conditions', [Condition(None)]) - def test_Process_versioned_attributes_singularity(self) -> None: """Test behavior of VersionedAttributes on saving (with .title).""" self.check_versioned_singularity()