Wykres commitów

14 Commity (361657a18d9ea5cec24c8968e4595b2a4c437c26)

Autor SHA1 Wiadomość Data
Marnanel Thurman d9beebe8ad Changed JSON encoding to use DjangoJSONEncoder. AcObject.published is writeable.
DjangoJSONEncoder can encode dates, so it's more useful than json.dumps.
Created d_k/utils.py for a convenience function as_json() to do that.

AcObject.published becomes writeable because remote objects need to
have their own published dates, not the date they arrived on our server.
2019-09-13 23:22:51 +01:00
Marnanel Thurman 1f37e1c654 test_find: the local server is "testserver" 2019-08-12 23:54:36 +01:00
Marnanel Thurman e91b42bad1 test_find asserts dict is subset rather than equal, and
doesn't double-encode JSON. Now passes.
2019-08-10 17:45:15 +01:00
Marnanel Thurman e29d083a37 formatting of values in settings.KEPI made consistent throughout 2019-08-10 16:22:36 +01:00
Marnanel Thurman b17af6f62b Removing d_k/types.py and doing the whole thing via polymorphic models.
Model names are their ActivityPub types.

As a result, Thing is renamed to Object.
2019-08-05 15:26:40 +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 c15c38c287 calls to create() use the new param format 2019-06-03 23:04:08 +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
Marnanel Thurman c82429f0c2 "activity" returns the found object, not a dictionary based on it 2019-05-25 00:31:09 +01:00
Marnanel Thurman 02f0578d43 Move _create_remote_object() into tests/__init__. 2019-05-22 18:13:50 +01:00
Marnanel Thurman ee939e10fe test_find passes 2019-05-22 17:44:17 +01:00
Marnanel Thurman 53be3e3efc Renaming django_kepi.Activity to django_kepi.Thing, preparatory to
merging it with d_k.ActivityModel.
2019-05-18 17:41:55 +01:00
Marnanel Thurman e7e572f4bd Remote find works! Hurrah! 2019-05-05 03:10:35 +01:00
Marnanel Thurman 21701eed83 Checked in two test modules which should have been in there already.
Removed a hack from KepiTestCase which was part of mock remote objects.
We don't do it that way any more.
2019-05-05 02:43:14 +01:00