You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor the `TestUserPromoLikeActions` test case to be more concise and readable.
- Introduce helper methods (`_create_user_and_get_token`, `_create_promo`, `_auth`, `_get_user_promo`, `_get_business_promo`, `_like`, `_unlike`) to reduce code duplication and improve clarity.
- Consolidate multiple, granular tests into fewer, more comprehensive tests (`test_initial_promo_state`, `test_like_action`, `test_like_idempotency`, etc.).
- Remove the dependency on a strict, numbered execution order, making the test suite more robust and easier to maintain.
- Add a `tearDown` method to clean up credentials after each test.
0 commit comments