summaryrefslogtreecommitdiff
path: root/internal/text/common_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/text/common_test.go')
-rw-r--r--internal/text/common_test.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/internal/text/common_test.go b/internal/text/common_test.go
index 19851956e..9d61b6113 100644
--- a/internal/text/common_test.go
+++ b/internal/text/common_test.go
@@ -25,8 +25,6 @@ import (
"github.com/stretchr/testify/suite"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
- "github.com/superseriousbusiness/gotosocial/internal/text"
- "github.com/superseriousbusiness/gotosocial/testrig"
)
const (
@@ -74,30 +72,6 @@ type CommonTestSuite struct {
TextStandardTestSuite
}
-func (suite *CommonTestSuite) SetupSuite() {
- suite.testTokens = testrig.NewTestTokens()
- suite.testClients = testrig.NewTestClients()
- suite.testApplications = testrig.NewTestApplications()
- suite.testUsers = testrig.NewTestUsers()
- suite.testAccounts = testrig.NewTestAccounts()
- suite.testAttachments = testrig.NewTestAttachments()
- suite.testStatuses = testrig.NewTestStatuses()
- suite.testTags = testrig.NewTestTags()
- suite.testMentions = testrig.NewTestMentions()
-}
-
-func (suite *CommonTestSuite) SetupTest() {
- suite.config = testrig.NewTestConfig()
- suite.db = testrig.NewTestDB()
- suite.formatter = text.NewFormatter(suite.config, suite.db)
-
- testrig.StandardDBSetup(suite.db, nil)
-}
-
-func (suite *CommonTestSuite) TearDownTest() {
- testrig.StandardDBTeardown(suite.db)
-}
-
func (suite *CommonTestSuite) TestReplaceMentions() {
foundMentions := []*gtsmodel.Mention{
suite.testMentions["zork_mention_foss_satan"],