Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move remove_color_codes to utils and add tests (Significant-Gravitas#…
…3260) * move remove_color_codes to utils and add tests * Fix for ai_settings goals loaded as list(dict) Some ai_settings formats can cause goals to load as list(dict) not list(str) Refactor code in utils.py to explicitly convert input type to string in remove_color_codes() function. - Updated remove_color_codes function to convert input argument to string type explicitly to avoid unexpected type errors. - Test case added to check conversion of dict to string in remove_color_codes function. * Update tests/test_utils.py Co-authored-by: James Collins <[email protected]> * move remove_color_codes fn and tests to proper files --------- Co-authored-by: Luke Kyohere <[email protected]> Co-authored-by: James Collins <[email protected]>
- Loading branch information