Problem
SmoothAPI maintains backwards compatibility with deprecated Python APIs,
including resilient_api and ResilientConfig.
These APIs emit DeprecationWarnings, but the warning behavior should be
covered by tests so that it is not accidentally removed in the future.
What needs to be done
Add pytest tests that verify the deprecated APIs emit the expected
DeprecationWarning.
The tests should verify both:
- The warning type
- The relevant warning message
Acceptance Criteria
Files to look at
packages/smooth-api-py/smooth_api/__init__.py
packages/smooth-api-py/tests/
Prerequisites
Basic Python and pytest.
Notes
The test should verify the current intended deprecation behavior rather
than changing the behavior itself.
Problem
SmoothAPI maintains backwards compatibility with deprecated Python APIs,
including
resilient_apiandResilientConfig.These APIs emit
DeprecationWarnings, but the warning behavior should becovered by tests so that it is not accidentally removed in the future.
What needs to be done
Add pytest tests that verify the deprecated APIs emit the expected
DeprecationWarning.The tests should verify both:
Acceptance Criteria
resilient_apiResilientConfigpytest.warns(DeprecationWarning)or an equivalent approach is usedFiles to look at
packages/smooth-api-py/smooth_api/__init__.pypackages/smooth-api-py/tests/Prerequisites
Basic Python and pytest.
Notes
The test should verify the current intended deprecation behavior rather
than changing the behavior itself.