From 043cac2654950c08e50a58c3052685642d813997 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Sun, 11 Jul 2021 23:53:46 +0200 Subject: [PATCH] 2.17.15 --- satella/__init__.py | 2 +- tests/test_exceptions.py | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/satella/__init__.py b/satella/__init__.py index c7fa2b24..5394e6e0 100644 --- a/satella/__init__.py +++ b/satella/__init__.py @@ -1 +1 @@ -__version__ = '2.17.15a1' +__version__ = '2.17.15' diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py index 7f754740..d68a48b6 100644 --- a/tests/test_exceptions.py +++ b/tests/test_exceptions.py @@ -6,6 +6,17 @@ from satella.exceptions import BaseSatellaError, CustomException, CodedCustomExc class TestExceptions(unittest.TestCase): + def test_advanced_class_hierarchy(self): + class A(CodedCustomException): + code = None # type: int + message = '' # type: str + + class B(A): + code = 2 + message = 'not readed error' + + b = B() + def test_coded_custom_exception_no_args(self): CodedCustomException() -- GitLab