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/form?a=blobdiff_plain;f=tests%2Fconditions.py;h=fb55e008bdb316669d1fb8abc56304413cd669d2;hb=02aa60b59cea2c0401efd785f3bb5d06aec7bf4d;hp=5270812a41e9f7fc369a426876fe316b349e34b7;hpb=9c62e1b0e5c30ed3fd7a49828749db195bc3e557;p=plomtask diff --git a/tests/conditions.py b/tests/conditions.py index 5270812..fb55e00 100644 --- a/tests/conditions.py +++ b/tests/conditions.py @@ -19,9 +19,9 @@ class TestsWithDB(TestCaseWithDB): default_init_kwargs = {'is_active': False} test_versioneds = {'title': str, 'description': str} - def test_Condition_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) @@ -33,10 +33,6 @@ class TestsWithDB(TestCaseWithDB): """Test .all().""" self.check_all() - def test_Condition_singularity(self) -> None: - """Test pointers made for single object keep pointing to it.""" - self.check_singularity('is_active', True) - def test_Condition_versioned_attributes_singularity(self) -> None: """Test behavior of VersionedAttributes on saving (with .title).""" self.check_versioned_singularity()