loris-imageserver / loris

Loris IIIF Image Server
Other
209 stars 87 forks source link

Improve the test coverage of authorizer.py #377

Closed alexwlchan closed 7 years ago

alexwlchan commented 7 years ago

Specifically, adding tests to cover the cases where the user tries to pass invalid config.

I’ve consolidated all the config validation code, and also switched it to use ConfigError, which is consistent with other parts of Loris when invalid config is detected.