bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 57 forks source link

Importer: Add unit tests #21136

Open kialj876 opened 2 weeks ago

kialj876 commented 2 weeks ago

This is a very important piece of the search process and it is not covered by any unit tests. Setting up a test environment for this is quite complex which is way it was put off in the past.

Proposal:

Tests will secure that the records are being parsed correctly from what we expect to receive from the db. There is complex logic involved here so these will be very valuable tests even though the db data collection is mocked