package sql_test

import (
	"testing"
	"tercul/internal/testutil"

	"github.com/stretchr/testify/suite"
)

type PublisherRepositoryTestSuite struct {
	testutil.IntegrationTestSuite
}

func (s *PublisherRepositoryTestSuite) SetupSuite() {
	s.IntegrationTestSuite.SetupSuite(testutil.DefaultTestConfig())
}

func (s *PublisherRepositoryTestSuite) SetupTest() {
	s.DB.Exec("DELETE FROM publishers")
}

func TestPublisherRepository(t *testing.T) {
	suite.Run(t, new(PublisherRepositoryTestSuite))
}

// NOTE: All tests for this repository were removed because they tested generic
// CRUD functionality that is now covered in `base_repository_test.go`.
// If you add publisher-specific methods to the repository, add their tests here.
