diff options
author | 2021-09-04 13:29:56 +0200 | |
---|---|---|
committer | 2021-09-04 13:29:56 +0200 | |
commit | ff05046df7c0ce21f70b0dd8dce59dd5e01771de (patch) | |
tree | 227720dc9ca30da106e508108eba08426e8bd2ee /internal/db/bundb/account_test.go | |
parent | Merge pull request #186 from superseriousbusiness/struct_validation (diff) | |
download | gotosocial-ff05046df7c0ce21f70b0dd8dce59dd5e01771de.tar.xz |
tests + announce notification fix (#193)
Diffstat (limited to 'internal/db/bundb/account_test.go')
-rw-r--r-- | internal/db/bundb/account_test.go | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/internal/db/bundb/account_test.go b/internal/db/bundb/account_test.go index 7174b781d..02f94ad40 100644 --- a/internal/db/bundb/account_test.go +++ b/internal/db/bundb/account_test.go @@ -24,37 +24,12 @@ import ( "time" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/testrig" ) type AccountTestSuite struct { BunDBStandardTestSuite } -func (suite *AccountTestSuite) 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 *AccountTestSuite) SetupTest() { - suite.config = testrig.NewTestConfig() - suite.db = testrig.NewTestDB() - suite.log = testrig.NewTestLog() - - testrig.StandardDBSetup(suite.db, suite.testAccounts) -} - -func (suite *AccountTestSuite) TearDownTest() { - testrig.StandardDBTeardown(suite.db) -} - func (suite *AccountTestSuite) TestGetAccountByIDWithExtras() { account, err := suite.db.GetAccountByID(context.Background(), suite.testAccounts["local_account_1"].ID) if err != nil { |