Wykres commitów

57 Commity (dfcc26ff187d13c0864f8b0e7e978762f5b77f0e)

Autor SHA1 Wiadomość Data
Marnanel Thurman cfe269f72c intermediate 2018-10-05 00:12:03 +01:00
Marnanel Thurman 3841a009f9 intermediate 2018-10-03 22:43:42 +01:00
Marnanel Thurman 0f840e5c12 Testing for asyncresult 2018-10-03 20:53:45 +01:00
Marnanel Thurman 7b5408ed4c Sort out model identifiers in things_for_testing 2018-09-27 17:53:25 +01:00
Marnanel Thurman 937bc04651 Test for "all known" tests for Activity creation as well as QM deletion 2018-09-27 17:36:12 +01:00
Marnanel Thurman e58a303589 Test that messages where all parts are known go through immediately. Also, url_identifier() -> activity_id in ThingArticle for regularity. 2018-09-27 16:52:29 +01:00
Marnanel Thurman 20ff4d636d Tests for non-json messages 2018-09-27 16:38:41 +01:00
Marnanel Thurman daa5543916 rm outdated comment 2018-09-27 13:50:26 +01:00
Marnanel Thurman 8717b59a97 Attempts to create "Like" activities, not "Article"s (which aren't Activitys) 2018-09-23 21:58:38 +01:00
Marnanel Thurman fd991062f3 After creating a Follow, also create an Accept for it 2018-09-18 23:12:13 +01:00
Marnanel Thurman 22cf60d524 add user to test, to avoid NeedToFetch 2018-09-16 21:49:08 +01:00
Marnanel Thurman 2b29a8e8e2 Removed all the old Cobject stuff, at last. This confused
makemigrations so much that I killed all the existing migrations
and started again.

Activity fields representing key+value pairs all begin with "f_"
because it was getting confusing when only some of them did.

Activity.deserialize() renamed Activity.create().

The tests don't all pass at present, but they will soon.
2018-09-16 21:42:27 +01:00
Marnanel Thurman 5bb3dad40d Many new tests 2018-09-12 23:49:25 +01:00
Marnanel Thurman 140dfe795f Activity.deserialize() correctly accesses its list of types.
First test for it (which found the above bug).
2018-09-12 02:50:08 +01:00
Marnanel Thurman 8c3d13ed46 New design for Activity, since we need to deserialise everything in the same place.
NeedToFetchException added.

rm mistaken params in TombstoneException's call to superclass's constructor.

URL_FORMAT -> ACTIVITY_URL_FORMAT for clarity.

rm tests for old code which is going away soon.
2018-09-10 13:56:31 +01:00
Marnanel Thurman 54d6a049b3 Tests for resolver 2018-09-07 14:55:07 +01:00
Marnanel Thurman 553c3d8d3d Okay, the NamedObject table was a mistake. Let's use the existing registration system. 2018-09-06 23:01:18 +01:00
Marnanel Thurman 928934eab2 First steps with the resolver 2018-09-06 20:00:39 +01:00
Marnanel Thurman 5b98d22c42 test_collection_with_overridden_transform() 2018-09-06 18:53:18 +01:00
Marnanel Thurman c066ff7e80 test_tombstone_collection_response() added
CollectionResponse correctly uses x.activity instead of str(x)

CollectionResponse handles TombstoneException correctly
2018-09-06 18:47:24 +01:00
Marnanel Thurman 45e8772430 test_collection_response_spills() 2018-09-06 18:26:11 +01:00
Marnanel Thurman 852b57ddce test contents of page 1 in collection response 2018-09-06 17:18:21 +01:00
Marnanel Thurman 59fe9d4372 test_collection_response, for index pages. Content pages to follow'. 2018-09-06 16:09:32 +01:00
Marnanel Thurman ce4ccf95ca test_tombstone_object_response. Also, checked response status code in test_object_response. 2018-09-06 15:47:36 +01:00
Marnanel Thurman f750b8e9a0 test_empty_response, test_object_response 2018-09-06 15:40:46 +01:00
Marnanel Thurman 7778f0a512 test_tombstone_exception 2018-09-06 15:30:26 +01:00
Marnanel Thurman 84c5afb403 intermediate 2018-09-05 23:11:18 +01:00
Marnanel Thurman 3da527d639 intermediate 2018-09-05 23:09:11 +01:00
Marnanel Thurman 27c218e42b Check both following and followed views 2018-09-01 22:54:51 +01:00
Marnanel Thurman 514f5ecadf Tests for FollowersView (they pass) 2018-09-01 18:19:48 +01:00
Marnanel Thurman 81a27fb853 ActivityObjectView delegates to its subclass for content via objectDetails().
Actor has a string representation.

FollowersView removed for now, because testing it is too fiddly
(it's not obvious how to construct the URL for the test client
now that we're using URLs as identifiers). It may be back later.

Version number bump.
2018-08-31 17:55:57 +01:00
Marnanel Thurman dd8daa7f66 Added tests to ensure that other apps can make to our data.
Reworked Actor: the only thing we know about an Actor is their URL.
Removed tests for Followers collections because it's hard to test
without subclassing the view. I may put it back in later.
2018-08-30 00:59:38 +01:00
Marnanel Thurman 61a3c2e020 Collection tests pass 2018-08-27 19:06:39 +01:00
Marnanel Thurman c04a83e442 intermediate 2018-08-27 18:53:52 +01:00
Marnanel Thurman e196010b82 OrderedCollectionPage tests fixed further 2018-08-26 22:44:56 +01:00
Marnanel Thurman 1c33a052c5 Tests now work with paging correctly 2018-08-26 22:21:09 +01:00
Marnanel Thurman 031826dd93 tests check for page contents correctly, but don't yet account for multiple pages 2018-08-26 21:16:04 +01:00
Marnanel Thurman f31caf1264 intermediate 2018-08-26 20:07:27 +01:00
Marnanel Thurman d7dfbee52d can test followers collection up to 100 2018-08-26 19:35:08 +01:00
Marnanel Thurman 9157c2f215 intermediate 2018-08-26 19:27:45 +01:00
Marnanel Thurman dbf8f149c0 intermediate 2018-08-25 00:04:08 +01:00
Marnanel Thurman d3e90ec4c7 intermediate 2018-08-24 19:29:35 +01:00
Marnanel Thurman cacb67345e Starting to get the tests in order 2018-08-20 20:14:49 +01:00
Marnanel Thurman 8fb9844a92 intermediate 2018-08-20 16:08:06 +01:00
Marnanel Thurman 8e9b36696a actually let's just not bother with Register 2018-08-20 00:10:19 +01:00
Marnanel Thurman e1a3aca719 intermediate 2018-08-19 21:47:54 +01:00
Marnanel Thurman 368434fd89 renamed activity_fields() to serialize() throughout. rm old call to register_type which no longer exists 2018-08-19 16:49:48 +01:00
Marnanel Thurman be18932ca3 intermediate 2018-08-19 04:11:44 +01:00
Marnanel Thurman 737e58d6cd Rewrite of much of django_kepi/models.py to use GenericForeignKeys.
Unfortunately, now the tests break...
2018-08-18 20:21:39 +01:00
Marnanel Thurman 1c09eb1d5d one-to-one links from ActivityObject 2018-08-12 14:06:26 +01:00