Marnanel Thurman
930deeb360
Merge branch 'tombstones' into issue-47
2020-10-29 01:54:20 +00:00
Marnanel Thurman
7902a4d1f8
test_tombstone passes
2020-10-29 01:53:12 +00:00
Marnanel Thurman
d044415053
add "gone" field to LocalPerson
2020-10-29 01:53:01 +00:00
Marnanel Thurman
63aba5e743
rm "deleted" signal
2020-10-29 01:52:28 +00:00
Marnanel Thurman
7248a14e65
rm some obsolete stuff from bowler_pub/__init__.py
2020-10-29 01:05:13 +00:00
Marnanel Thurman
c4c175738f
Merge branch 'status-serialisers' into issue-47
2020-10-29 01:00:57 +00:00
Marnanel Thurman
5290980643
CreateActivitySerializer renamed to StatusActivitySerializer.
...
This is because it handles boosts as well as creates.
2020-10-29 00:57:38 +00:00
Marnanel Thurman
088ed35040
CreateActivitySerializer mostly working; to and cc are constants, which they shouldn't be.
...
Test now passes.
2020-10-29 00:52:34 +00:00
Marnanel Thurman
07d6597611
test_read_announce working; that class renamed Tests per policy
2020-10-29 00:49:28 +00:00
Marnanel Thurman
88bef76a14
add "activity_url" property to Status, and corresponding STATUS_ACTIVITY_URL template to settings
2020-10-29 00:27:46 +00:00
Marnanel Thurman
f5b1c4ef0a
test_read_from_outbox.Tests.test_read_announce() now written. Not yet passing.
2020-10-28 20:42:41 +00:00
Marnanel Thurman
e26e2781d6
test_update() passes
2020-10-28 20:35:55 +00:00
Marnanel Thurman
972377aafa
Updated test_update(), though it doesn't pass
2020-10-27 20:40:28 +00:00
Marnanel Thurman
65593a41e1
fix a test in test_send
2020-10-27 19:07:45 +00:00
Marnanel Thurman
fda564d8d2
on_like() added to create.py; test_like() passes
2020-10-27 18:32:35 +00:00
Marnanel Thurman
bbb0fc278a
added missing "self" in Like.__str__()
2020-10-27 18:32:14 +00:00
Marnanel Thurman
0d5b665434
LocalPerson gains has_liked(). Tests updated.
2020-10-27 18:19:29 +00:00
Marnanel Thurman
baabe28692
Fixed up test_headers so it passes. Old config variable name updated, and a bunch of standard headers that no longer exist removed.
2020-10-27 15:57:49 +00:00
Marnanel Thurman
e8037ce402
on_create() will propagate "actor" in the Create activity to "attributedTo" in the newborn object
...
if it doesn't already have an "attributedTo".
2020-10-26 22:44:15 +00:00
Marnanel Thurman
fb263aa946
test_when_sender_is_followed_by_local_users() gives the new note an id; it now passes
2020-10-26 22:43:27 +00:00
Marnanel Thurman
7def1ea478
Added @skip back to test_when_sender_has_no_relevance_to_local_activity(), for now.
...
Solving this will require diving into Masto's code.
2020-10-26 22:33:55 +00:00
Marnanel Thurman
4fbad0a949
Removed loads of @skip decorators from tests, as part of issue 47.
...
Tests now fail quite a lot. :)
2020-10-26 22:29:55 +00:00
Marnanel Thurman
e9af25bc6f
Merge branch 'issue-61' into 'main'
...
All the signals are emitted by the save() or delete() methods of model classes, rather than the views.
Closes issue 61.
See merge request marnanel/chapeau!1
2020-10-24 22:31:49 +00:00
Marnanel Thurman
fec67697d8
Status sends "reblogged" signal on object creation if the object is a reblog, and "posted" otherwise
2020-10-24 23:27:02 +01:00
Marnanel Thurman
32e2e145af
"liked" signal sent by Like rather than the view.
...
New "unliked" signal, but we don't use it yet.
2020-10-24 23:24:54 +01:00
Marnanel Thurman
e7c36ffb64
create() relies on the Follow object to send the "followed" signal, rather than doing it itself
2020-10-24 23:19:46 +01:00
Marnanel Thurman
9e52df11ff
Status gains "send_signal" in the same way as in commit 9008d1df
2020-10-24 23:17:13 +01:00
Marnanel Thurman
9008d1df3c
Follow's save() and delete() methods gain a "send_signal" param, defaulting to False
2020-10-24 23:10:39 +01:00
Marnanel Thurman
fe12ccbf22
auto_follow=False on test user to simplify debugging
2020-10-24 23:10:18 +01:00
Marnanel Thurman
e9cb4ff574
the problem was that one of the tests created Follows in the actual test,
...
which previously didn't send signals but now did, and the LocalPersons
it had created had auto_follow=True. So we accidentally fixed a test breakage
we didn't know about.
Still some issues to resolve here.
2020-10-23 22:27:30 +01:00
Marnanel Thurman
3486194d90
right, this should work
2020-10-23 22:17:04 +01:00
Marnanel Thurman
a1e2f92f17
version bump for dillian
2020-10-23 21:56:19 +01:00
Marnanel Thurman
ba27b594a2
Deserialisation methods were split between sombrero_sendpub.fetch() and bowler_pub.create(). They're now all in create().
...
Tests updated.
test_announce filled in and made to pass. Closes issue #45 .
2020-10-19 16:54:22 +01:00
Marnanel Thurman
b6d5039f6c
rename url to remote_url per policy
2020-10-19 16:52:43 +01:00
Marnanel Thurman
0259daf3ed
"url" param of trilby's Person renamed to "remote_url" per policy; "status" field or attribute removed in both Person subclasses.
...
It was getting too confusing to store people who don't exist in Person. See sombrero's Failure for where they went.
2020-10-19 16:51:11 +01:00
Marnanel Thurman
f480aa71d0
Trilby tests: rename url to remote_url, per policy.
...
Also add @httpretty.activate where needed.
2020-10-19 16:49:27 +01:00
Marnanel Thurman
5d6c209fde
Collection ends iteration gracefully if a page can't be found.
...
Also renamed __init__'s url param to remote_url, per policy.
2020-10-19 16:48:39 +01:00
Marnanel Thurman
ee8c5fa285
If your test uses create_remote_person with auto_fetch=True, it gets ValueError if the fetch fails.
...
This is because the fetch shouldn't fail-- we *just* mocked something at that address. So if it fails, you set up your test case wrongly.
2020-10-19 16:46:36 +01:00
Marnanel Thurman
4eabf2dd1a
sombrero gains "Failure" model to record HTTP failures
2020-10-19 16:22:14 +01:00
Marnanel Thurman
71f5186d7f
corrected "log.warning" to "logger.warning"
2020-10-19 16:20:22 +01:00
Marnanel Thurman
bb67a18112
Where an identifier of a remote object is called "url", rename it to "remote_url".
...
We were calling it "url" in some places and "remote_url" in others.
2020-10-19 16:17:58 +01:00
Marnanel Thurman
d2fda1e974
Only local accounts can receive Notifications. Closes issue #43 .
...
As part of this, remove the previously undiscovered ability to send Accepts for remote users!
2020-10-11 15:46:06 +01:00
Marnanel Thurman
d3c0663a96
LocalPerson gains "featured" attribute. Bowler gains FeaturedView.
...
Tests updated. Closes issue #41 .
2020-10-11 15:36:58 +01:00
Marnanel Thurman
265f863746
test to demonstrate that featured collections are broken (see issue #41 ).
...
Test object in test_views renamed "Tests" per my own style guide.
2020-10-11 15:07:17 +01:00
Marnanel Thurman
90e815f888
Version bump to 0.4.5 "archer"; various bits of package metadata changed
2020-10-10 02:54:36 +01:00
Marnanel Thurman
7f3a4a04ff
MANIFEST.in includes markdown and images in docs/
2020-10-10 02:54:13 +01:00
Marnanel Thurman
df35f1c389
Sombrero notifies remote users when a local status is posted.
...
Closes issue #42 .
2020-10-10 02:17:05 +01:00
Marnanel Thurman
9d679815a6
trilby_api.models.Status gains "is_local" for symmetry with Person.
...
Tests updated.
2020-10-10 02:16:31 +01:00
Marnanel Thurman
e4556225da
Regression test for issue #42 . Currently fails because that bug is open.
2020-10-10 01:57:17 +01:00
Marnanel Thurman
1d4b0f957a
Creating a Status causes trilby_api.signals.posted to be sent.
...
The signal isn't currently received by anything.
2020-10-09 15:04:51 +01:00