summaryrefslogtreecommitdiff
path: root/internal/trans/trans_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/trans/trans_test.go')
-rw-r--r--internal/trans/trans_test.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/internal/trans/trans_test.go b/internal/trans/trans_test.go
index f7b85af1b..4eedf5703 100644
--- a/internal/trans/trans_test.go
+++ b/internal/trans/trans_test.go
@@ -21,17 +21,22 @@ package trans_test
import (
"github.com/stretchr/testify/suite"
"github.com/superseriousbusiness/gotosocial/internal/db"
+ "github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
"github.com/superseriousbusiness/gotosocial/testrig"
)
type TransTestSuite struct {
suite.Suite
- db db.DB
+ db db.DB
+ testAccounts map[string]*gtsmodel.Account
}
func (suite *TransTestSuite) SetupTest() {
- testrig.InitTestLog()
testrig.InitTestConfig()
+ testrig.InitTestLog()
+
+ suite.testAccounts = testrig.NewTestAccounts()
+
suite.db = testrig.NewTestDB()
testrig.StandardDBSetup(suite.db, nil)
}