mirror of
https://github.com/SamyRai/tercul-backend.git
synced 2025-12-27 04:01:34 +00:00
Some checks failed
- Updated database models and repositories to replace uint IDs with UUIDs. - Modified test fixtures to generate and use UUIDs for authors, translations, users, and works. - Adjusted mock implementations to align with the new UUID structure. - Ensured all relevant functions and methods are updated to handle UUIDs correctly. - Added necessary imports for UUID handling in various files.
29 lines
730 B
Go
29 lines
730 B
Go
package sql_test
|
|
|
|
import (
|
|
"tercul/internal/testutil"
|
|
"testing"
|
|
|
|
"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.
|