Skip to content
Snippets Groups Projects
Verified Commit 28700270 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Removed factory import

parent 7bb15a3a
Branches
Tags
No related merge requests found
...@@ -11,7 +11,6 @@ from rest_framework.exceptions import PermissionDenied ...@@ -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): ...@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment