Internal properties of state object should be private. #6215
Labels
backend
enhancement
Label to indicate an issue is a feature/improvement
Impact: Low -- DO NOT WORK ON THIS YET
Postponing for now, since it doesn't affect users much.
Work: Medium
The means to find the solution is clear, but it isn't at good-first-issue level yet.
All over the test files the state objects are updated directly accessing the object's internal properties but from the top level, we use update_interaction_hints, update_interaction_answer_groups etc. to update the internal properties of the state, so making those internal properties private and updating the test file to follow a similar pattern would make a consitent and clean tests.
Note: Linking content_id to assets is managed internally and also from this perspective we expect all test to use a top-level method to update the internal properties such that they will go through updating assets with the content ids.
see this comment for reference.
The text was updated successfully, but these errors were encountered: