api/autoname_test.go
Method AutonameSuite.TestSourceNamers
has 74 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (suite *AutonameSuite) TestSourceNamers() {
author := &models.Author{ID: -1}
author.L.LoadAuthorI18ns(suite.tx, true, author, nil) // dummy call to initialize R
author.R.AuthorI18ns = make(models.AuthorI18nSlice, 0)
author.R.AuthorI18ns = append(author.R.AuthorI18ns,