Wykres commitów

471 Commity (5f5afa1978edec1ba13180da18099f698c973e08)

Autor SHA1 Wiadomość Data
Marnanel Thurman d633ef4c08 fixed Audience debug messages to be similar to ThingField 2019-06-07 13:57:43 +01:00
Marnanel Thurman 02baeaa1f4 Thing adds Audiences for audience fields. Plus test. 2019-06-07 13:56:20 +01:00
Marnanel Thurman b0a5b78f75 missing comma 2019-06-07 13:53:08 +01:00
Marnanel Thurman 1841276ae3 Thing's debug logging looks more like Audience's 2019-06-05 00:13:57 +01:00
Marnanel Thurman 51b8d7f347 new Audience model, plus tests. Not yet linked in to Thing. 2019-06-05 00:07:05 +01:00
Marnanel Thurman 63a3a82356 Sorted ACTIVITY_TYPE_CHOICES per https://code.djangoproject.com/ticket/30505 2019-06-05 00:06:23 +01:00
Marnanel Thurman 82cd4671a5 rm spurious warn 2019-06-05 00:05:29 +01:00
Marnanel Thurman 954a6fb627 Using httpretty for testing delivery 2019-06-03 23:04:20 +01:00
Marnanel Thurman c15c38c287 calls to create() use the new param format 2019-06-03 23:04:08 +01:00
Marnanel Thurman 3eb0aa5666 mock_remote_object() gains "as_post" param 2019-06-03 23:03:09 +01:00
Marnanel Thurman 2dcc7e043f check for None before checking for type.
Thing and Actor implement __contains__.
2019-06-03 23:02:43 +01:00
Marnanel Thurman 7a57d691df Tombstones. Closes #7. 2019-05-29 12:37:51 +01:00
Marnanel Thurman fb1444e4ef Actors have an activity_form 2019-05-29 11:49:02 +01:00
Marnanel Thurman 244da31b47 test_activity brought up to date with changes in create() params 2019-05-29 11:42:57 +01:00
Marnanel Thurman 1a9e124e57 Thing.create() takes params as params rather than as a dict, like its Django core counterparts. 2019-05-29 11:34:43 +01:00
Marnanel Thurman 243e1d9ca0 mock_remote_object() allows its content to be bytes or string 2019-05-29 11:18:10 +01:00
Marnanel Thurman 03b9262402 checking for invalid remote JSON 2019-05-29 11:17:56 +01:00
Marnanel Thurman f70c27ec2d test_auto_follow() sends signed message. Closes #1. 2019-05-29 10:56:24 +01:00
Marnanel Thurman 47e0a58a22 Body of IncomingMessage is json-encoded, not Python encoded 2019-05-29 10:55:55 +01:00
Marnanel Thurman bb2685476a create_remote_person can pass arbitrary extra fields to mock_remote_object 2019-05-29 10:46:15 +01:00
Marnanel Thurman bbef535b56 Cut test_all_parts_known() because it duplicates other tests 2019-05-29 10:37:25 +01:00
Marnanel Thurman 572b4e608e Test for invalid UTF-8 2019-05-29 10:36:37 +01:00
Marnanel Thurman d93212320b Malformed JSON gets 400 2019-05-29 10:31:26 +01:00
Marnanel Thurman 0713dec537 More constants; rm extraneous comma 2019-05-29 10:31:12 +01:00
Marnanel Thurman 2ee4b416a5 Require incoming messages to be application/activity+json or application/json 2019-05-29 10:22:00 +01:00
Marnanel Thurman b5a3aa1dbd test_shared_post() passes 2019-05-29 09:58:52 +01:00
Marnanel Thurman 32689cba82 create_person() renamed to create_local_person() 2019-05-29 09:54:45 +01:00
Marnanel Thurman a7948a76d0 create_remote_person() 2019-05-29 09:52:52 +01:00
Marnanel Thurman 54465e537e Thing.__str___ improved, though I'm still not quite happy with it 2019-05-29 09:50:01 +01:00
Marnanel Thurman 0b3ee9a226 more default params for post_test_message 2019-05-29 09:45:28 +01:00
Marnanel Thurman 13b6370cb2 No need to create a separate Client 2019-05-29 09:43:37 +01:00
Marnanel Thurman f71e8f0382 test_specific_post actually has assertions in it (oops)
Test user for test_specific_post has auto_follow=False so we don't create extra Activities.
2019-05-29 09:42:35 +01:00
Marnanel Thurman d0786af451 auto_follow is an Actor field 2019-05-29 09:42:11 +01:00
Marnanel Thurman 00116bbf85 rm extra header in call in post_test_message() 2019-05-29 09:33:51 +01:00
Marnanel Thurman 038d0ca2d1 post_test_message() 2019-05-29 09:32:20 +01:00
Marnanel Thurman dadff3a45d test_specific_post passes 2019-05-29 09:16:43 +01:00
Marnanel Thurman 34b6c59e30 create_person() always creates an Actor object, even with no extra data for it.
test_message() split into test_message() and test_message_body_and_headers().
2019-05-29 09:15:39 +01:00
Marnanel Thurman b6fc2812d5 Improved headers handling in message validation 2019-05-29 09:15:16 +01:00
Marnanel Thurman 2f5e77c85a Debug logging 2019-05-29 09:15:00 +01:00
Marnanel Thurman 04f6c06db9 Test for auto-follow. Closes issue #2. 2019-05-29 01:13:04 +01:00
Marnanel Thurman 5ef582aaf6 create_person() also creates the Actor object 2019-05-29 01:12:08 +01:00
Marnanel Thurman cb9e99a208 Follow events cause automatic Accepts if the flag is set for that.
create() can handle initial values which are lists.
2019-05-29 01:09:58 +01:00
Marnanel Thurman 3d7fd94f51 key_name().
The pk of thing is called url, not id.
2019-05-29 01:09:15 +01:00
Marnanel Thurman ddb65c42b0 export Actor 2019-05-29 01:08:57 +01:00
Marnanel Thurman a96d2a2a85 __str__() split into __str__() and __repr__(). RemoteItem param is str()ified before use. 2019-05-29 01:08:07 +01:00
Marnanel Thurman d4a1b5707c Sole inboxes were using the address of the shared inbox.
Improved debug logging about server response.
2019-05-29 01:06:53 +01:00
Marnanel Thurman 38512de494 ActorView is a specialised ThingView 2019-05-28 17:50:32 +01:00
Marnanel Thurman 31cee0ae93 More helpful error message if the param is of the wrong type 2019-05-28 17:49:51 +01:00
Marnanel Thurman b57fafb7a8 rm old code 2019-05-28 16:04:22 +01:00
Marnanel Thurman 47d2989d29 A bunch of shared code moved to tests/__init__, with the underscore prefixes removed. 2019-05-27 21:18:28 +01:00