Open cclauss opened 1 year ago
In case it's any help, here's the current state of test coverage for update_keys()
, where the red lines are not executed. Rather than despairing, I am interpreting this to mean there's lots of opportunity to write great new tests.
A continuation of #7883
The
update_keys()
async function inopenlibrary/solr/update_work.py
is 145+ lines long and is too complex... https://github.com/internetarchive/openlibrary/blob/112b89b2b5a37262664cd0f7647939a670e04833/openlibrary/solr/update_work.py#L1382-L1528Tasks:
pyproject.toml
remove this line"openlibrary/solr/update_work.py" = ["C901", "E722", "PLR0912", "PLR0915"]
update_keys()
function so that it passes the tests created in step 1 as well as allruff
tests.