diff options
Diffstat (limited to 'openbb_platform/core/tests/app/test_deprecation.py')
-rw-r--r-- | openbb_platform/core/tests/app/test_deprecation.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/openbb_platform/core/tests/app/test_deprecation.py b/openbb_platform/core/tests/app/test_deprecation.py index c30df03f697..926fe991a7b 100644 --- a/openbb_platform/core/tests/app/test_deprecation.py +++ b/openbb_platform/core/tests/app/test_deprecation.py @@ -16,8 +16,10 @@ class DeprecatedCommandsTest(unittest.TestCase): with self.subTest(i=path): if getattr(route, "deprecated", False): deprecation_message = getattr(route, "summary", "") - obb_deprecation_warning = deprecation_message.metadata + if hasattr(deprecation_message, "metadata"): + obb_deprecation_warning = deprecation_message.metadata - assert ( - obb_deprecation_warning.expected_removal != current_major_minor - ), f"The expected removal version of `{path}` matches the current version, please remove it." + assert ( + obb_deprecation_warning.expected_removal + != current_major_minor + ), f"The expected removal version of `{path}` matches the current version, please remove it." |