Implement or remove the three skipped caching tests in test_player_service.py
#33
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/major-domo-database#33
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
tests/unit/test_player_service.py:387, 394, 412— Three tests marked@pytest.mark.skip(reason="Caching not yet implemented in service methods").Priority: low | Labels: todo, tech-debt
Opened PR #58: #58
Approach: removed the
TestPlayerServiceCacheclass rather than implementing the tests.Root cause: the tests can't work with the current architecture.
get_playersis a classmethod with no cache access (sotest_cache_set_on_readandtest_cache_hit_ratecan never pass), and write methods usetemp_service = cls()which creates a new instance that doesn't inherit the injectedServiceConfigcache — so any invalidation calls go to a different cache object than the test fixture observes.