You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to run uniqueness validations, all the data needs to be imported into the database. If import_directory can call a validation method (which can be a noop in BaseImporter) before returning, I can override that method to issue warnings if collection/table-level validations don't pass.
Right now, I need to run these validations from outside Pupa, which means I don't see the validation errors when I run pupa update while developing the scraper.
The text was updated successfully, but these errors were encountered:
I'd probably import the appropriate Importer class and override the validation method with my logic. I don't know common Python patterns for injecting code/behavior into an existing class, so there are likely better ways.
In order to run uniqueness validations, all the data needs to be imported into the database. If
import_directory
can call a validation method (which can be a noop in BaseImporter) before returning, I can override that method to issue warnings if collection/table-level validations don't pass.Right now, I need to run these validations from outside Pupa, which means I don't see the validation errors when I run
pupa update
while developing the scraper.The text was updated successfully, but these errors were encountered: