package sql_test

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

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

type SourceRepositoryTestSuite struct {
	testutil.IntegrationTestSuite
}

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

func (s *SourceRepositoryTestSuite) SetupTest() {
	s.DB.Exec("DELETE FROM sources")
}

func TestSourceRepository(t *testing.T) {
	suite.Run(t, new(SourceRepositoryTestSuite))
}

// 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 source-specific methods to the repository, add their tests here.
