Wykres commitów

398 Commity (98520cd0ad614920c433ecd4c81f0a03d13c9ba5)

Autor SHA1 Wiadomość Data
Marnanel Thurman 98520cd0ad create() produces instances of subtypes of Thing as appropriate. 2019-06-29 16:40:47 +01:00
Marnanel Thurman ca332a3396 Move to django-polymorphic. Everything gets simpler. Still cleaning up. 2019-06-27 17:19:02 +01:00
Marnanel Thurman a0d58da706 Remove things_for_testing; it's been irrelevant for a few months now! 2019-06-27 16:31:54 +01:00
Marnanel Thurman 1c98217b31 I have determined what it means, and it isn't relevant 2019-06-27 16:26:08 +01:00
Marnanel Thurman 496aca9a83 test_like is pretty much working (and it fails) 2019-06-27 16:23:41 +01:00
Marnanel Thurman 29db607c2c Added create_local_note(). Added default name for create_local_person(). 2019-06-27 16:16:38 +01:00
Marnanel Thurman fa367b4c36 Extra properties to meet the expectations of Mastodon tests.
Lots of ValueErrors converted to logged errors and None returns.
2019-06-27 16:15:37 +01:00
Marnanel Thurman 93a6f7a974 When an audience is None, store nothing, not the word "None".
Removed extraneous debug log statement.
2019-06-27 16:13:01 +01:00
Marnanel Thurman efc268ac23 __init__.py was missing 2019-06-27 16:12:33 +01:00
Marnanel Thurman 03db481b9a Tests based on Mastodon 2019-06-27 16:12:06 +01:00
Marnanel Thurman a7e7d43e30 if kepicreate creates a Create, it prints the created object too 2019-06-25 00:17:27 +01:00
Marnanel Thurman fb212e725e rm debug prints! 2019-06-25 00:12:50 +01:00
Marnanel Thurman 78fc41e54f __setitem__; side-effect for "create"; type normalisation refactored 2019-06-25 00:11:12 +01:00
Marnanel Thurman 0ee6e2970f Remove "id" field during create 2019-06-17 20:45:47 +01:00
Marnanel Thurman f73e8dfbd1 you can have no F=V pairs with kepicreate 2019-06-17 20:45:30 +01:00
Marnanel Thurman c89fb32dd9 management commands: kepicreate, kepilist 2019-06-17 20:38:18 +01:00
Marnanel Thurman ffbec4bd09 "pretty" property for pretty-printing a Thing.
__getitem__() returns None if its argument is not found.
__getitem__("number") returns the serial number.
2019-06-17 20:37:20 +01:00
Marnanel Thurman f2a5a3eca7 Delivery to collections 2019-06-15 19:13:43 +01:00
Marnanel Thurman febda23a04 match_querystring on test collections, otherwise paging fails 2019-06-15 00:41:05 +01:00
Marnanel Thurman e7b26ccd73 Refactor delivery into local and remote fns 2019-06-15 00:33:32 +01:00
Marnanel Thurman c8193491e2 test_remote_followers(), which fails at present
because delivery doesn't do collections yet
2019-06-14 21:18:22 +01:00
Marnanel Thurman 42a42dbce0 create_remote_collection(). Plus some new constants. 2019-06-14 21:09:43 +01:00
Marnanel Thurman 852a8541c0 "Public" and "as:Public" work as synonyms for the public collection.
Some outdated comments removed.
2019-06-13 19:38:26 +01:00
Marnanel Thurman ec6ffec965 Delivery test system greatly simplified. Basic tests added, which pass. 2019-06-13 18:50:55 +01:00
Marnanel Thurman 8e9193c796 Pass inbox name into local POST handler, as if it came in via HTTP 2019-06-13 18:49:55 +01:00
Marnanel Thurman 7d5b635012 rm confusing debug message 2019-06-08 23:33:21 +01:00
Marnanel Thurman ca144feeae Intermediate checkin; local delivery works a bit better 2019-06-08 23:27:55 +01:00
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