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/basic_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/basic_test.go')
-rw-r--r-- | internal/db/bundb/basic_test.go | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/internal/db/bundb/basic_test.go b/internal/db/bundb/basic_test.go index af03eb244..d8067fb9d 100644 --- a/internal/db/bundb/basic_test.go +++ b/internal/db/bundb/basic_test.go @@ -24,37 +24,12 @@ import ( "github.com/stretchr/testify/suite" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/testrig" ) type BasicTestSuite struct { BunDBStandardTestSuite } -func (suite *BasicTestSuite) 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 *BasicTestSuite) SetupTest() { - suite.config = testrig.NewTestConfig() - suite.db = testrig.NewTestDB() - suite.log = testrig.NewTestLog() - - testrig.StandardDBSetup(suite.db, suite.testAccounts) -} - -func (suite *BasicTestSuite) TearDownTest() { - testrig.StandardDBTeardown(suite.db) -} - func (suite *BasicTestSuite) TestGetAccountByID() { testAccount := suite.testAccounts["local_account_1"] |