From b96533ca8f4d155e87e5325b4b192894d7d3e077 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 22 Aug 2022 11:21:36 +0200 Subject: [bugfix] Fix loss of account info on export/import, add tests (#759) * start adding additional tests * use random database address for in-memory sqlite * add more fields to account export --- internal/trans/trans_test.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'internal/trans/trans_test.go') 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) } -- cgit v1.2.3