Simplify configuration construction in the API handlers tests
While working on !49 (closed), we found out how repeated the base configuration construction (configuration.Configuration{}
) was in registry/handlers/api_test.go
.
This MR extracts that repeated code into an utility function that can be reused. This is one of the largest test files, so code reuse is especially important.