Removed factory import
This commit is contained in:
parent
7bb15a3aa1
commit
28700270bd
|
@ -11,7 +11,6 @@ from rest_framework.exceptions import PermissionDenied
|
||||||
from dynamic_preferences.registries import global_preferences_registry
|
from dynamic_preferences.registries import global_preferences_registry
|
||||||
|
|
||||||
from . import activity
|
from . import activity
|
||||||
from . import factories
|
|
||||||
from . import models
|
from . import models
|
||||||
from . import serializers
|
from . import serializers
|
||||||
from . import utils
|
from . import utils
|
||||||
|
@ -190,26 +189,25 @@ class TestActor(SystemActor):
|
||||||
'published': now.isoformat(),
|
'published': now.isoformat(),
|
||||||
'to': ac['actor'],
|
'to': ac['actor'],
|
||||||
'cc': [],
|
'cc': [],
|
||||||
'object': factories.NoteFactory(
|
'object': {
|
||||||
content='Pong!',
|
'type': 'Note',
|
||||||
summary=None,
|
'content': 'Pong!',
|
||||||
published=now.isoformat(),
|
'summary': None,
|
||||||
id=reply_url,
|
'published': now.isoformat(),
|
||||||
inReplyTo=ac['object']['id'],
|
'id': reply_url,
|
||||||
sensitive=False,
|
'inReplyTo': ac['object']['id'],
|
||||||
url=reply_url,
|
'sensitive': False,
|
||||||
to=[ac['actor']],
|
'url': reply_url,
|
||||||
attributedTo=test_actor.url,
|
'to': [ac['actor']],
|
||||||
cc=[],
|
'attributedTo': test_actor.url,
|
||||||
attachment=[],
|
'cc': [],
|
||||||
tag=[
|
'attachment': [],
|
||||||
{
|
'tag': [{
|
||||||
"type": "Mention",
|
"type": "Mention",
|
||||||
"href": ac['actor'],
|
"href": ac['actor'],
|
||||||
"name": sender.mention_username
|
"name": sender.mention_username
|
||||||
}
|
}]
|
||||||
]
|
}
|
||||||
)
|
|
||||||
}
|
}
|
||||||
activity.deliver(
|
activity.deliver(
|
||||||
reply_activity,
|
reply_activity,
|
||||||
|
|
Loading…
Reference in New Issue