Marnanel Thurman
8348be5f56
Added Collection model, and modified the collection views to display it.
...
Tests in test_inbox2 use it, but this is a work in progress.
2019-07-26 17:47:44 +01:00
Marnanel Thurman
579266b5fa
test_inbox2. Like test_inbox, but using the tools built for test_outbox.
...
When test_inbox2 is working, I'll merge it with test_inbox.
2019-07-25 17:18:09 +01:00
Marnanel Thurman
1b5a75b309
Fixed delete test for outbox to check with and without tombstones.
2019-07-22 18:00:41 +01:00
Marnanel Thurman
34b63787a8
Test for deletion; fails
2019-07-22 17:30:05 +01:00
Marnanel Thurman
32ee56b18e
Update to outbox doesn't work on objects you don't own
2019-07-21 18:43:54 +01:00
Marnanel Thurman
517ea268a4
Update activities to outbox work.
2019-07-21 18:38:50 +01:00
Marnanel Thurman
5691417a35
Test for Update activity sent to outbox. Fails.
2019-07-21 18:23:01 +01:00
Marnanel Thurman
0191a96c70
test_like in outbox. Also fix up checks in other tests.
2019-07-21 18:06:18 +01:00
Marnanel Thurman
e23d18a2f3
simplify assertion in test_unwrapped_object
2019-07-21 17:33:29 +01:00
Marnanel Thurman
5ed943d1a0
test_create_doesnt_work_on_activities written. Currently fails.
2019-07-21 17:17:18 +01:00
Marnanel Thurman
09348f663c
add 'testserver' to ALLOWED_HOSTS
2019-07-21 16:54:56 +01:00
Marnanel Thurman
b4f4a164cf
Test for posting non-activities to outbox. Currently fails.
2019-07-20 23:35:52 +01:00
Marnanel Thurman
5c5a9b7017
Tests for posting to outbox with incorrect IDs both local and remote.
...
They pass.
2019-07-20 23:26:46 +01:00
Marnanel Thurman
1ce0ee1df2
Interloper tests for Create activities, which both currently fail
2019-07-19 22:46:47 +01:00
Marnanel Thurman
6b4baeb2ea
Test for unsigned messages into outbox passes
2019-07-19 22:17:47 +01:00
Marnanel Thurman
7ed917764e
Create test in outbox passes
2019-07-19 22:13:48 +01:00
Marnanel Thurman
7b3c1125cd
Local users for testing have a "preferredUsername" field
2019-07-19 22:12:56 +01:00
Marnanel Thurman
0e19b00f38
Tests for the outbox view. Rough initial version.
2019-07-18 14:31:57 +01:00
Marnanel Thurman
8aa62d5abd
Fields unique to Actor have the "f_" prefix if they're fields of the Thing.
...
For example, publicKey becomes f_publicKey. This allows polymorphic subscripting.
Also, cleaned up some of the code from before we introduced polymorphism.
2019-07-18 14:27:21 +01:00
Marnanel Thurman
18565c6afe
Huge checkin: central project "kepi" to use the "django_kepi" library.
...
This has shown up some bugs. Checking in the fixes for them too.
2019-07-11 18:25:06 +01:00
Marnanel Thurman
4638315d8d
None of the Create tests throw an exception (but not all of them pass)
2019-07-09 16:03:04 +01:00
Marnanel Thurman
6c4d29523e
Continued fixup of the create tests to send Creates. Partial checkin.
2019-07-09 11:05:24 +01:00
Marnanel Thurman
3ab67f5d33
"Create" tests should create Creates! Partial checkin.
2019-07-09 01:48:42 +01:00
Marnanel Thurman
1698ccc357
find() creates Things marked as remote, rather than some weird
...
half-arsed replacement of its own.
python-mimeparse added to the requirements because fetch() needs it.
2019-07-05 17:26:21 +01:00
Marnanel Thurman
962e85c0f8
"is_local" param of create() replaces vague "sender" param.
...
Tests for particular fields by Thing type removed, pending
replacement with cleverer system from d_k/things.py.
Class imports for create() done in the importing code
rather than at the top of the file, which leaves a mess.
2019-07-05 17:23:50 +01:00
Marnanel Thurman
1450667b9a
rm repetition
2019-07-03 21:01:33 +01:00
Marnanel Thurman
87f015eea5
Switching back to the old "other_fields" system
...
because it works much better with polymorphic models.
2019-07-03 00:48:58 +01:00
Marnanel Thurman
08d000f67a
'create' has moved
2019-07-02 21:44:13 +01:00
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
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
03db481b9a
Tests based on Mastodon
2019-06-27 16:12:06 +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
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
ca144feeae
Intermediate checkin; local delivery works a bit better
2019-06-08 23:27:55 +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
51b8d7f347
new Audience model, plus tests. Not yet linked in to Thing.
2019-06-05 00:07:05 +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
7a57d691df
Tombstones. Closes #7 .
2019-05-29 12:37:51 +01:00
Marnanel Thurman
244da31b47
test_activity brought up to date with changes in create() params
2019-05-29 11:42:57 +01:00