unt-libraries / catalog-api

A Django project that lets you build and expose a REST API for your library's Sierra ILS-based catalog
BSD 3-Clause "New" or "Revised" License
17 stars 8 forks source link

Add basic exporter tests #38

Closed jthomale closed 6 years ago

jthomale commented 6 years ago

This PR adds some basic integration-ish tests for some of the existing export.Exporter classes. In order to add tests for EResourcesToSolr, I had to add some sierra-db-test fixtures for e-resource records. Also added quite a few fixtures that the exporter tests rely on to function.

The tests are basic in the sense that they test to make sure that each export process will actually load records into Solr and (if applicable) delete records from Solr. That's pretty much it.