diff options
author | 2021-08-29 12:03:08 +0200 | |
---|---|---|
committer | 2021-08-29 12:03:08 +0200 | |
commit | 53507ac2a32a785b5467b1e58d033780d8e02693 (patch) | |
tree | 1c48ac9f5fc47e65450d53d8d26d0dee30753687 /internal/typeutils/astointernal_test.go | |
parent | Replace federating DB locks map, add a cleanup goroutine (#166) (diff) | |
download | gotosocial-53507ac2a32a785b5467b1e58d033780d8e02693.tar.xz |
Mention fixup (#167)
* rework mention creation a bit
* rework mention creation a bit
* tidy up status dereferencing
* start adding tests for dereferencing
* fixups
* fix
* review changes
Diffstat (limited to 'internal/typeutils/astointernal_test.go')
-rw-r--r-- | internal/typeutils/astointernal_test.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/internal/typeutils/astointernal_test.go b/internal/typeutils/astointernal_test.go index a01e79202..21b36a5c4 100644 --- a/internal/typeutils/astointernal_test.go +++ b/internal/typeutils/astointernal_test.go @@ -338,7 +338,7 @@ func (suite *ASToInternalTestSuite) SetupSuite() { suite.log = testrig.NewTestLog() suite.accounts = testrig.NewTestAccounts() suite.people = testrig.NewTestFediPeople() - suite.typeconverter = typeutils.NewConverter(suite.config, suite.db) + suite.typeconverter = typeutils.NewConverter(suite.config, suite.db, suite.log) } func (suite *ASToInternalTestSuite) SetupTest() { @@ -346,7 +346,7 @@ func (suite *ASToInternalTestSuite) SetupTest() { } func (suite *ASToInternalTestSuite) TestParsePerson() { - testPerson := suite.people["new_person_1"] + testPerson := suite.people["https://unknown-instance.com/users/brand_new_person"] acct, err := suite.typeconverter.ASRepresentationToAccount(context.Background(), testPerson, false) assert.NoError(suite.T(), err) @@ -363,8 +363,6 @@ func (suite *ASToInternalTestSuite) TestParsePerson() { suite.Equal("https://unknown-instance.com/@brand_new_person", acct.URL) suite.True(acct.Discoverable) suite.Equal("https://unknown-instance.com/users/brand_new_person#main-key", acct.PublicKeyURI) - suite.Equal("https://unknown-instance.com/media/some_avatar_filename.jpeg", acct.AvatarRemoteURL) - suite.Equal("https://unknown-instance.com/media/some_header_filename.jpeg", acct.HeaderRemoteURL) suite.False(acct.Locked) } |