scrapinghub / spidermon

Scrapy Extension for monitoring spiders execution.
https://spidermon.readthedocs.io
BSD 3-Clause "New" or "Revised" License
528 stars 96 forks source link

Update translation regex to identify new schematics message #310

Closed rennerocha closed 2 years ago

rennerocha commented 2 years ago

Schematics 2.1.1 changed the error message when a value doesn't match one of the available choices of a field.

This commit updates the regex used to identify this message, so it continues being translated to the common messages.VALUE_NOT_IN_CHOICES that is shared amongst all validator libraries.

codecov[bot] commented 2 years ago

Codecov Report

Merging #310 (941a7bb) into master (94d4c32) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #310   +/-   ##
=======================================
  Coverage   73.21%   73.21%           
=======================================
  Files          68       68           
  Lines        2972     2972           
  Branches      324      324           
=======================================
  Hits         2176     2176           
  Misses        735      735           
  Partials       61       61           
Impacted Files Coverage Δ
...dermon/contrib/validation/schematics/translator.py 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 94d4c32...941a7bb. Read the comment docs.